Fix broken POWER_LOSS_RECOVERY prompt (#18557)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Jason SmithandScott Lahteine authored and GitHub committed 2020-07-06 01:18:49 -05:00
1 parent 764fc81761
commit af8be58d92
5 files changed
+7 -11

No files matched your search

+1 -1
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;