MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / print2u

Function print2u

Marlin/src/sd/SdBaseFile.cpp:1285–1288  ·  view source on GitHub ↗

print uint8_t with width 2

Source from the content-addressed store, hash-verified

1283
1284// print uint8_t with width 2
1285static void print2u(const uint8_t v) {
1286 if (v < 10) SERIAL_CHAR('0');
1287 SERIAL_ECHO(v);
1288}
1289
1290/**
1291 * %Print a directory date field to Serial.

Callers 2

printFatDateMethod · 0.85
printFatTimeMethod · 0.85

Calls 2

SERIAL_CHARFunction · 0.50
SERIAL_ECHOFunction · 0.50

Tested by

no test coverage detected