From 6fc8ed0772d88c9a3f18e17de6d2d3f52cc2145f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:44:17 -0500 Subject: [PATCH] spelling: stabilized Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/fw/services/common/battery/battery_state.c | 2 +- src/fw/services/common/hrm/hrm_manager_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fw/services/common/battery/battery_state.c b/src/fw/services/common/battery/battery_state.c index c9788330..1c0dce46 100644 --- a/src/fw/services/common/battery/battery_state.c +++ b/src/fw/services/common/battery/battery_state.c @@ -213,7 +213,7 @@ static void prv_update_state(void *force_update) { // - We are charging // - We are discharging and: // - 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. if (!charging && likely_stable && new_charge_percent > s_last_battery_state.percent) { diff --git a/src/fw/services/common/hrm/hrm_manager_private.h b/src/fw/services/common/hrm/hrm_manager_private.h index 7eb17c4d..1e4a67d1 100644 --- a/src/fw/services/common/hrm/hrm_manager_private.h +++ b/src/fw/services/common/hrm/hrm_manager_private.h @@ -98,7 +98,7 @@ struct HRMManagerState { // 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 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 // off-wrist. 0 if still off-wrist or off. };