Move print helpers to Hotdog.ino
This commit is contained in:
@@ -166,18 +166,3 @@ void calculateCRC() { // must be called after the buffer has been filled
|
||||
buf[length + 2] = checksum1; // Checksum
|
||||
buf[length + 3] = checksum2; // Checksum
|
||||
}
|
||||
|
||||
void printHex(uint8_t num) { //print a byte as two hex chars
|
||||
char hexCar[3];
|
||||
sprintf(hexCar, "%02X", num);
|
||||
Serial.print(hexCar);
|
||||
}
|
||||
|
||||
void printBuffer() //print a byte array as hex chars
|
||||
{
|
||||
uint8_t bytecount = buf[0] + 3;
|
||||
for (int i = 0; i < bytecount; i++) {
|
||||
printHex(buf[i]);
|
||||
}
|
||||
Serial.println();
|
||||
}
|
||||
Reference in New Issue
Block a user