1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
-
-
- #include "Marlin.h"
- #if ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(M100_FREE_MEMORY_WATCHER)
-
- #include "hex_print_routines.h"
-
- void prt_hex_nibble(uint8_t n) {
- if (n <= 9)
- SERIAL_ECHO(n);
- else
- SERIAL_ECHO((char)('A' + n - 10));
- delay(3);
- }
-
- void prt_hex_byte(uint8_t b) {
- prt_hex_nibble((b & 0xF0) >> 4);
- prt_hex_nibble(b & 0x0F);
- }
-
- void prt_hex_word(uint16_t w) {
- prt_hex_byte((w & 0xFF00) >> 8);
- prt_hex_byte(w & 0x0FF);
- }
-
- #endif
|