|
PebbleOS
|
Low power mode entered when the watch is not moving. More...
Functions | |
| void | stationary_init (void) |
| Initialize the service. | |
| bool | stationary_get_enabled (void) |
| Get the user setting. | |
| void | stationary_set_enabled (bool enabled) |
| Change the user setting. | |
| void | stationary_run_level_enable (bool allow) |
| Runlevel hook. | |
| void | stationary_wake_up (void) |
| Leave stationary mode if active. | |
| void | stationary_handle_battery_connection_change_event (void) |
| Handle a charger connection change. | |
Low power mode entered when the watch is not moving.
Once enabled, the accelerometer is sampled every minute. After 30 minutes without motion the system switches to the stationary runlevel; motion or a button press switches it back. Stationary mode only runs while the user setting allows it, the runlevel permits it and the charger is disconnected.
| bool stationary_get_enabled | ( | void | ) |
Get the user setting.
| void stationary_handle_battery_connection_change_event | ( | void | ) |
Handle a charger connection change.
Called on KernelMain.
| void stationary_init | ( | void | ) |
Initialize the service.
| void stationary_run_level_enable | ( | bool | allow | ) |
Runlevel hook.
| allow | True if the current runlevel allows stationary mode. |
| void stationary_set_enabled | ( | bool | enabled | ) |
Change the user setting.
Disabling ends any stationary period and keeps the watch from entering stationary mode.
| enabled | True to allow stationary mode. |
| void stationary_wake_up | ( | void | ) |
Leave stationary mode if active.
Call before doing something that likely needs user interaction, such as an alarm. Must be called on KernelMain.