mirror of
https://github.com/google/pebble.git
synced 2025-04-30 07:21:39 -04:00
spelling: stabilized
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
88ce796b6c
commit
6fc8ed0772
2 changed files with 2 additions and 2 deletions
|
@ -213,7 +213,7 @@ static void prv_update_state(void *force_update) {
|
||||||
// - We are charging
|
// - We are charging
|
||||||
// - We are discharging and:
|
// - We are discharging and:
|
||||||
// - The readings have stabilized and the battery percent did not go up
|
// - The readings have stabilized and the battery percent did not go up
|
||||||
// - The readings have not yet stablized
|
// - The readings have not yet stabilized
|
||||||
// TL;DR: Allow updates unless we're stable and discharging but the % went up.
|
// TL;DR: Allow updates unless we're stable and discharging but the % went up.
|
||||||
if (!charging && likely_stable &&
|
if (!charging && likely_stable &&
|
||||||
new_charge_percent > s_last_battery_state.percent) {
|
new_charge_percent > s_last_battery_state.percent) {
|
||||||
|
|
|
@ -98,7 +98,7 @@ struct HRMManagerState {
|
||||||
|
|
||||||
// These variables used to keep track of the sensor reading validity.
|
// These variables used to keep track of the sensor reading validity.
|
||||||
bool sensor_stable; // True after we receive the first good reading after power-on or off-wrist
|
bool sensor_stable; // True after we receive the first good reading after power-on or off-wrist
|
||||||
bool off_wrist_when_stable; // true if sensor said off-wrist when first stablized
|
bool off_wrist_when_stable; // true if sensor said off-wrist when first stabilized
|
||||||
RtcTicks sensor_start_ticks; // tick count last time sensor was powered on, or last
|
RtcTicks sensor_start_ticks; // tick count last time sensor was powered on, or last
|
||||||
// off-wrist. 0 if still off-wrist or off.
|
// off-wrist. 0 if still off-wrist or off.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue