What steps will reproduce the problem? 1.If byte or integer variables are printed with serial.print or serial.println with the HEX output format option leading zeroes are not printed: byte reading5 = ...
It appears like any calls to Serial.print(), including Serial.println and likewise Serial.write(buffer, cnt), will remain in these calls, until the last byte is queued to the underlying UART. Here is ...