PFW-1362 Change isSpoolJoinEnabled to return bool
This commit is contained in:
parent
65a0036dbe
commit
94119744ad
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue