Fix two new explicit case fallthru warnings
This commit is contained in:
parent
d727a949dd
commit
09e935d27b
|
|
@ -744,7 +744,7 @@ static void factory_reset(char level)
|
||||||
|
|
||||||
case 2: // Level 2: Prepare for shipping
|
case 2: // Level 2: Prepare for shipping
|
||||||
factory_reset_stats();
|
factory_reset_stats();
|
||||||
// [[fallthrough]] // there is no break intentionally
|
// FALLTHRU
|
||||||
|
|
||||||
case 3: // Level 3: Preparation after being serviced
|
case 3: // Level 3: Preparation after being serviced
|
||||||
// Force language selection at the next boot up.
|
// Force language selection at the next boot up.
|
||||||
|
|
|
||||||
|
|
@ -7146,8 +7146,8 @@ void lcd_sdcard_menu()
|
||||||
_md->fileCnt = card.getnrfilenames();
|
_md->fileCnt = card.getnrfilenames();
|
||||||
_md->sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT);
|
_md->sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT);
|
||||||
_md->menuState = _standard;
|
_md->menuState = _standard;
|
||||||
// FALLTHRU
|
|
||||||
}
|
}
|
||||||
|
// FALLTHRU
|
||||||
case _standard: //normal menu structure.
|
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.
|
if (!_md->lcd_scrollTimer.running()) //if the timer is not running, then the menu state was just switched, so redraw the screen.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue