[Solved] How to supress leading zero trimming with serial.print(var, HEX);

PaulS:

Is there a way to have serial.print(var, HEX); not strip leading zeros

No. Serial.print() does not do formatted output.

sprintf() does, and you can tell it to include leading 0s, and output in a variety of bases.

So for our single byte of data, use sprintf() to convert to a null-terminated (thus 3 element) char array and then serial.print() that?