Fix sd_status comparison

Co-Authored-By: perkmeister <perkmeister@users.noreply.github.com>
This commit is contained in:
Scott Lahteine 2018-04-30 21:09:50 -05:00
parent 1f92b9a4ed
commit 524cc392f4

View File

@ -5123,10 +5123,10 @@ void lcd_update() {
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
const bool sd_status = IS_SD_INSERTED;
const uint8_t sd_status = (uint8_t)IS_SD_INSERTED;
if (sd_status != lcd_sd_status && lcd_detected()) {
bool old_sd_status = lcd_sd_status; // prevent re-entry to this block!
uint8_t old_sd_status = lcd_sd_status; // prevent re-entry to this block!
lcd_sd_status = sd_status;
if (sd_status) {