|
@@ -17,12 +17,12 @@ SpoolJoin::SpoolJoin()
|
|
|
void SpoolJoin::updateSpoolJoinStatus(EEPROM newStatus)
|
|
|
{
|
|
|
status = newStatus;
|
|
|
- eeprom_write_byte((uint8_t*)EEPROM_AUTO_DEPLETE, (uint8_t)status);
|
|
|
+ eeprom_write_byte((uint8_t*)EEPROM_SPOOL_JOIN, (uint8_t)status);
|
|
|
}
|
|
|
|
|
|
void SpoolJoin::initSpoolJoinStatus()
|
|
|
{
|
|
|
- EEPROM currentStatus = (EEPROM)eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE);
|
|
|
+ EEPROM currentStatus = (EEPROM)eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN);
|
|
|
if( currentStatus == EEPROM::Empty)
|
|
|
{
|
|
|
// By default SpoolJoin is disabled
|
|
@@ -43,17 +43,17 @@ void SpoolJoin::initSpoolJoinStatus()
|
|
|
|
|
|
void SpoolJoin::toggleSpoolJoin()
|
|
|
{
|
|
|
- if (eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Disabled)
|
|
|
+ if (eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN) == (uint8_t)EEPROM::Disabled)
|
|
|
{
|
|
|
- eeprom_write_byte((uint8_t*)EEPROM_AUTO_DEPLETE, (uint8_t)EEPROM::Enabled);
|
|
|
+ eeprom_write_byte((uint8_t*)EEPROM_SPOOL_JOIN, (uint8_t)EEPROM::Enabled);
|
|
|
} else {
|
|
|
- eeprom_write_byte((uint8_t*)EEPROM_AUTO_DEPLETE, (uint8_t)EEPROM::Disabled);
|
|
|
+ eeprom_write_byte((uint8_t*)EEPROM_SPOOL_JOIN, (uint8_t)EEPROM::Disabled);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
bool SpoolJoin::isSpoolJoinEnabled()
|
|
|
{
|
|
|
- if(eeprom_read_byte((uint8_t*)EEPROM_AUTO_DEPLETE) == (uint8_t)EEPROM::Enabled) {
|
|
|
+ if(eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN) == (uint8_t)EEPROM::Enabled) {
|
|
|
return true;
|
|
|
} else {
|
|
|
return false;
|