WIP modbus write config register crash
This commit is contained in:
parent
990e1ae908
commit
390f7d1c92
@ -337,8 +337,10 @@ int main(void)
|
||||
}
|
||||
/* if config changed (MODBUS write), reflect changes to EEPROM */
|
||||
if (sensor_config_pending_write) {
|
||||
uart_disable_interrupts();
|
||||
config_write(&sensor_config);
|
||||
sensor_config_pending_write = 0;
|
||||
uart_enable_interrupts();
|
||||
}
|
||||
if (modbus_address_changed)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user