diff --git a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.cpp b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.cpp index 516788d..3b4fced 100644 --- a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.cpp +++ b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.cpp @@ -70,12 +70,9 @@ void restoreConfig() { long longTemp; EEPROM.get(VM_CONST_DEFAULT, longTemp); - if (longTemp < 1000000L || longTemp > 1200000L) - { + if (longTemp < 1000000L || longTemp > 1200000L) { resetEEPROM(); - } - else - { + } else { voltMeterConstant = longTemp; } }