[realtek-ambz] Fix software rebooting

This commit is contained in:
Kuba Szczodrzyński
2022-11-26 19:35:40 +01:00
parent 1172c1a852
commit 9e4bbe3e36

View File

@@ -10,8 +10,8 @@ extern "C" {
}
void LibreTuya::restart() {
sys_cpu_reset();
sys_reset();
// The Watchdog Way
wdtEnable(1L);
while (1) {}
}