From 76f3819b39546a519b1607ddd256915ed4271708 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:57:52 -0500 Subject: [PATCH] spelling: typical Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- src/fw/services/normal/blob_db/health_db.c | 10 +++++----- tests/fw/services/blob_db/test_health_db.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fw/services/normal/blob_db/health_db.c b/src/fw/services/normal/blob_db/health_db.c index a614628b..c24343b2 100644 --- a/src/fw/services/normal/blob_db/health_db.c +++ b/src/fw/services/normal/blob_db/health_db.c @@ -42,7 +42,7 @@ static PebbleMutex *s_mutex; #define MOVEMENT_DATA_KEY_SUFFIX "_movementData" #define SLEEP_DATA_KEY_SUFFIX "_sleepData" -#define STEP_TYPICALS_KEY_SUFFIX "_steps" // Not the best suffix, but we are stuck with it now... +#define STEP_TYPICAL_KEY_SUFFIX "_steps" // Not the best suffix, but we are stuck with it now... #define STEP_AVERAGE_KEY_SUFFIX "_dailySteps" #define SLEEP_AVERAGE_KEY_SUFFIX "_sleepDuration" #define HR_ZONE_DATA_KEY_SUFFIX "_heartRateZoneData" @@ -144,7 +144,7 @@ static bool prv_is_last_processed_timestamp_valid(time_t timestamp) { } -//! Tell the activity service that it needs to update its "current" values (non typicals / averages) +//! Tell the activity service that it needs to update its "current" values (non typical / averages) static void prv_notify_health_listeners(const char *key, int key_len, const uint8_t *val, @@ -306,7 +306,7 @@ bool health_db_get_typical_step_averages(DayInWeek day, ActivityMetricAverages * } char key[HEALTH_DB_MAX_KEY_LEN]; - snprintf(key, HEALTH_DB_MAX_KEY_LEN, "%s%s", WEEKDAY_NAMES[day], STEP_TYPICALS_KEY_SUFFIX); + snprintf(key, HEALTH_DB_MAX_KEY_LEN, "%s%s", WEEKDAY_NAMES[day], STEP_TYPICAL_KEY_SUFFIX); const int key_len = strlen(key); status_t s = settings_file_get(&file, key, key_len, averages->average, sizeof(averages->average)); @@ -321,7 +321,7 @@ bool health_db_set_typical_values(ActivityMetric metric, uint16_t *values, int num_values) { char key[HEALTH_DB_MAX_KEY_LEN]; - snprintf(key, HEALTH_DB_MAX_KEY_LEN, "%s%s", WEEKDAY_NAMES[day], STEP_TYPICALS_KEY_SUFFIX); + snprintf(key, HEALTH_DB_MAX_KEY_LEN, "%s%s", WEEKDAY_NAMES[day], STEP_TYPICAL_KEY_SUFFIX); const int key_len = strlen(key); return health_db_insert((uint8_t *)key, key_len, (uint8_t*)values, num_values * sizeof(uint16_t)); @@ -353,7 +353,7 @@ status_t health_db_insert(const uint8_t *key, int key_len, const uint8_t *val, i PBL_HEXDUMP(LOG_LEVEL_DEBUG, val, val_len); #endif - // Only store typicals / averages in this settings file. "Current" values are stored in the + // Only store typical / averages in this settings file. "Current" values are stored in the // activity settings file. // Sleep data contains a mix of current and typical values. The current values are just stored // for convenience and can't be accessed from this settings file. diff --git a/tests/fw/services/blob_db/test_health_db.c b/tests/fw/services/blob_db/test_health_db.c index 669586a6..05cf643f 100644 --- a/tests/fw/services/blob_db/test_health_db.c +++ b/tests/fw/services/blob_db/test_health_db.c @@ -250,7 +250,7 @@ void test_health_db__movement_data(void) { cl_assert_equal_i(s_metric_updated_count, NUM_CURRENT_MOVEMENT_METRICS); - // check typicals (not stored) + // check typical (not stored) int32_t val_out; cl_assert(!health_db_get_typical_value(ActivityMetricStepCount, Monday, &val_out)); @@ -272,7 +272,7 @@ void test_health_db__sleep_data(void) { cl_assert_equal_i(s_metric_updated_count, NUM_CURRENT_SLEEP_METRICS); - // check typicals + // check typical int32_t val_out; cl_assert(health_db_get_typical_value(ActivityMetricSleepTotalSeconds, Monday, &val_out)); @@ -296,7 +296,7 @@ void test_health_db__hr_zone_data(void) { cl_assert_equal_i(s_metric_updated_count, NUM_CURRENT_HR_ZONE_METRICS); - // check typicals (not stored) + // check typical (not stored) int32_t val_out; cl_assert(!health_db_get_typical_value(ActivityMetricHeartRateZone1Minutes, Monday, &val_out));