Browse Source

Fix sd_status comparison

Co-Authored-By: perkmeister <perkmeister@users.noreply.github.com>
pull/1/head
Scott Lahteine 7 years ago
parent
commit
524cc392f4
  1. 4
      Marlin/src/lcd/ultralcd.cpp

4
Marlin/src/lcd/ultralcd.cpp

@ -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) {

Loading…
Cancel
Save