Fix broken POWER_LOSS_RECOVERY prompt (#18557)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Jason Smith
2020-07-05 23:18:49 -07:00
committed by GitHub
parent 764fc81761
commit af8be58d92
5 changed files with 7 additions and 11 deletions

View File

@ -389,7 +389,7 @@ void CardReader::mount() {
#endif
void CardReader::manage_media() {
static uint8_t prev_stat = TERN(INIT_SDCARD_ON_BOOT, 2, 0);
static uint8_t prev_stat = 2; // First call, no prior state
uint8_t stat = uint8_t(IS_SD_INSERTED());
if (stat == prev_stat) return;