Skip to content

Commit 1cc6963

Browse files
Deomid Ryabkovcesantabot
authored andcommitted
Fix Sys.reboot()
Should point to mgos_system_restart_after instead of mgos_system_restart Fixes #7 CL: Fix Sys.reboot() PUBLISHED_FROM=89179b1d3aee936ac9b0fc20e95e82edbc345bf4
1 parent b9a5b1b commit 1cc6963

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/api_sys.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ let Sys = {
2727
// Return free available RAM in bytes.
2828
free_ram: ffi('int mgos_get_free_heap_size()'),
2929

30-
// ## **`Sys.reboot(us)`**
31-
// Reboot the system after `us` microseconds. Return value: none.
32-
reboot: ffi('void mgos_system_restart()'),
30+
// ## **`Sys.reboot(ms)`**
31+
// Reboot the system after `ms` milliseconds. Return value: none.
32+
reboot: ffi('void mgos_system_restart_after(int)'),
3333

3434
// ## **`Sys.uptime()`**
3535
// Return number of seconds since last reboot.

0 commit comments

Comments
 (0)