reflected changes from master
This commit is contained in:
commit
a4ba1c2343
@ -431,8 +431,10 @@ int main(void)
|
|||||||
}
|
}
|
||||||
/* if config changed (MODBUS write), reflect changes to EEPROM */
|
/* if config changed (MODBUS write), reflect changes to EEPROM */
|
||||||
if (sensor_config_pending_write) {
|
if (sensor_config_pending_write) {
|
||||||
|
uart_disable_interrupts();
|
||||||
config_write(&sensor_config);
|
config_write(&sensor_config);
|
||||||
sensor_config_pending_write = 0;
|
sensor_config_pending_write = 0;
|
||||||
|
uart_enable_interrupts();
|
||||||
}
|
}
|
||||||
if (modbus_address_changed)
|
if (modbus_address_changed)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user