From 09e935d27bcd29c78917734ae3f1a80d92242071 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Tue, 20 Apr 2021 22:18:32 +0200 Subject: [PATCH] Fix two new explicit case fallthru warnings --- Firmware/Marlin_main.cpp | 2 +- Firmware/ultralcd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 8d239ae8..ffee0cc4 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -744,7 +744,7 @@ static void factory_reset(char level) case 2: // Level 2: Prepare for shipping factory_reset_stats(); - // [[fallthrough]] // there is no break intentionally + // FALLTHRU case 3: // Level 3: Preparation after being serviced // Force language selection at the next boot up. diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 8eef206b..f96a9c4f 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -7146,8 +7146,8 @@ void lcd_sdcard_menu() _md->fileCnt = card.getnrfilenames(); _md->sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT); _md->menuState = _standard; - // FALLTHRU } + // FALLTHRU case _standard: //normal menu structure. { if (!_md->lcd_scrollTimer.running()) //if the timer is not running, then the menu state was just switched, so redraw the screen.