MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / PrintHex83

Function PrintHex83

RFM69_OTA.cpp:537–548  ·  view source on GitHub ↗

=================================================================================================================== PrintHex83() - prints 8-bit data in HEX format ===================================================================================================================

Source from the content-addressed store, hash-verified

535// PrintHex83() - prints 8-bit data in HEX format
536//===================================================================================================================
537void PrintHex83(uint8_t* data, uint8_t length)
538{
539 uint8_t tmp;
540 for (uint8_t i=0; i<length; i++)
541 {
542 tmp = (data[i] >> 4) | 48;
543 Serial.print((char)((tmp > 57) ? tmp+7 : tmp));
544 tmp = (data[i] & 0x0F) | 48;
545 Serial.print((char)((tmp > 57) ? tmp+7 : tmp));
546 }
547 Serial.println();
548}
549
550//===================================================================================================================
551// bufferChecksum() - compute 1 byte checksum on a byte stream

Callers 2

HandleWirelessHEXDataFunction · 0.85
sendHEXPacketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected