feat: implement modbus reset command and update docs/tool
This commit is contained in:
@@ -110,6 +110,12 @@ static int holding_reg_wr(uint16_t addr, uint16_t reg)
|
||||
k_timer_stop(&watchdog_timer);
|
||||
}
|
||||
break;
|
||||
case REG_HOLDING_DEVICE_RESET:
|
||||
if (reg == 1) {
|
||||
LOG_WRN("Modbus reset command received. Rebooting...");
|
||||
sys_reboot(SYS_REBOOT_WARM);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
fwu_handler(addr, reg);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user