Fix identation in PR
Also combined the if statements that check farm_mode If farm_mode is 0xFF then we can skip the next if statment. No change in memory footprint
This commit is contained in:
parent
8af9f78822
commit
19dc05597d
|
|
@ -1103,10 +1103,8 @@ void setup()
|
||||||
farm_mode = eeprom_read_byte((uint8_t*)EEPROM_FARM_MODE);
|
farm_mode = eeprom_read_byte((uint8_t*)EEPROM_FARM_MODE);
|
||||||
if (farm_mode == 0xFF) {
|
if (farm_mode == 0xFF) {
|
||||||
farm_mode = false; //if farm_mode has not been stored to eeprom yet and farm number is set to zero or EEPROM is fresh, deactivate farm mode
|
farm_mode = false; //if farm_mode has not been stored to eeprom yet and farm number is set to zero or EEPROM is fresh, deactivate farm mode
|
||||||
eeprom_update_byte((uint8_t*)EEPROM_FARM_MODE, farm_mode);
|
eeprom_update_byte((uint8_t*)EEPROM_FARM_MODE, farm_mode);
|
||||||
}
|
} else if (farm_mode) {
|
||||||
if (farm_mode)
|
|
||||||
{
|
|
||||||
no_response = true; //we need confirmation by recieving PRUSA thx
|
no_response = true; //we need confirmation by recieving PRUSA thx
|
||||||
important_status = 8;
|
important_status = 8;
|
||||||
prusa_statistics(8);
|
prusa_statistics(8);
|
||||||
|
|
@ -1118,9 +1116,9 @@ void setup()
|
||||||
//disabled filament autoload (PFW360)
|
//disabled filament autoload (PFW360)
|
||||||
fsensor_autoload_set(false);
|
fsensor_autoload_set(false);
|
||||||
#endif //FILAMENT_SENSOR
|
#endif //FILAMENT_SENSOR
|
||||||
// ~ FanCheck -> on
|
// ~ FanCheck -> on
|
||||||
if(!(eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED)))
|
if(!(eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED)))
|
||||||
eeprom_update_byte((unsigned char *)EEPROM_FAN_CHECK_ENABLED,true);
|
eeprom_update_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TMC2130
|
#ifdef TMC2130
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue