Decoding signed CAN bytes in C

I’ve been trying to write a function to decode CAN bytes in C, taking into account endianness of values coming in and endianness of system. Now, it works fine for unsigned values, but sucks for signed ones. I have a feeling I have deeply misunderstood how signed representation works in C – I assumed the… Read More Decoding signed CAN bytes in C