PebbleOS
Loading...
Searching...
No Matches
Functions
Stationary mode

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.
 

Detailed Description

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.

Function Documentation

◆ stationary_get_enabled()

bool stationary_get_enabled ( void  )

Get the user setting.

Returns
True if the user allows stationary mode.

◆ stationary_handle_battery_connection_change_event()

void stationary_handle_battery_connection_change_event ( void  )

Handle a charger connection change.

Called on KernelMain.

◆ stationary_init()

void stationary_init ( void  )

Initialize the service.

◆ stationary_run_level_enable()

void stationary_run_level_enable ( bool  allow)

Runlevel hook.

Parameters
allowTrue if the current runlevel allows stationary mode.

◆ stationary_set_enabled()

void stationary_set_enabled ( bool  enabled)

Change the user setting.

Disabling ends any stationary period and keeps the watch from entering stationary mode.

Parameters
enabledTrue to allow stationary mode.

◆ stationary_wake_up()

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.