[realtek-ambz] Fix software rebooting
This commit is contained in:
@@ -10,8 +10,8 @@ extern "C" {
|
||||
}
|
||||
|
||||
void LibreTuya::restart() {
|
||||
sys_cpu_reset();
|
||||
sys_reset();
|
||||
// The Watchdog Way
|
||||
wdtEnable(1L);
|
||||
while (1) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user