Skip to content

Commit b15d4fb

Browse files
cpqcesantabot
authored andcommitted
Add free ram and reboot
CL: Add free ram and reboot PUBLISHED_FROM=3cb347918b160d9b78941704b17f97e81155752d
1 parent 20c415c commit b15d4fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/api_sys.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ let Sys = {
1414

1515
// ## **`Sys.calloc(nmemb, size)`**
1616
// Allocate a memory region.
17-
// Note: currently memory allocated this way must be explicitly released with `free()`.
17+
// Note: currently memory allocated this way must be explicitly released with
18+
// `free()`.
1819
malloc: ffi('void *malloc(int)'),
1920
free: ffi('void free(void *)'),
2021

@@ -28,7 +29,7 @@ let Sys = {
2829

2930
// ## **`Sys.reboot(us)`**
3031
// Reboot the system after `us` microseconds. Return value: none.
31-
reboot: ffi('void mgos_system_restart(int)'),
32+
reboot: ffi('void mgos_system_restart()'),
3233

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

0 commit comments

Comments
 (0)