We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20c415c commit b15d4fbCopy full SHA for b15d4fb
fs/api_sys.js
@@ -14,7 +14,8 @@ let Sys = {
14
15
// ## **`Sys.calloc(nmemb, size)`**
16
// Allocate a memory region.
17
- // Note: currently memory allocated this way must be explicitly released with `free()`.
+ // Note: currently memory allocated this way must be explicitly released with
18
+ // `free()`.
19
malloc: ffi('void *malloc(int)'),
20
free: ffi('void free(void *)'),
21
@@ -28,7 +29,7 @@ let Sys = {
28
29
30
// ## **`Sys.reboot(us)`**
31
// Reboot the system after `us` microseconds. Return value: none.
- reboot: ffi('void mgos_system_restart(int)'),
32
+ reboot: ffi('void mgos_system_restart()'),
33
34
// ## **`Sys.uptime()`**
35
// Return number of seconds since last reboot.
0 commit comments