PFW-1362 Change isSpoolJoinEnabled to return bool

This commit is contained in:
Guðni Már Gilbert 2022-09-10 19:23:59 +00:00 committed by D.R.racer
parent 65a0036dbe
commit 94119744ad
2 changed files with 5 additions and 4 deletions

View File

@ -51,12 +51,12 @@ void SpoolJoin::toggleSpoolJoin()
}
}
uint8_t SpoolJoin::isSpoolJoinEnabled()
bool SpoolJoin::isSpoolJoinEnabled()
{
if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled) {
return 1;
return true;
} else {
return 0;
return false;
}
}

View File

@ -31,7 +31,8 @@ public:
static void toggleSpoolJoin();
/// @brief Check if SpoolJoin is enabled
uint8_t isSpoolJoinEnabled();
/// @returns true if enabled, false if disabled
bool isSpoolJoinEnabled();
/// @brief Update the saved MMU slot number so SpoolJoin can determine the next slot to use
/// @param slot number of the slot to set