MMU: Fix printing uint8_t value onto serial

uint8_t values don't print correctly. Cast to 2-byte integer is required.
This commit is contained in:
gudnimg 2023-09-23 11:03:53 +00:00 committed by Guðni Már Gilbert
parent c97143fc2d
commit 0139cf6dde
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ void MMU2::CheckUserInput() {
case Buttons::Middle:
case Buttons::Right:
SERIAL_ECHOPGM("CheckUserInput-btnLMR ");
SERIAL_ECHOLN(buttons_to_uint8t(btn));
SERIAL_ECHOLN((int)buttons_to_uint8t(btn));
ResumeHotendTemp(); // Recover the hotend temp before we attempt to do anything else...
if (mmu2.MMULastErrorSource() == MMU2::ErrorSourceMMU) {