mirror of
https://github.com/google/pebble.git
synced 2025-04-30 07:21:39 -04:00
spelling: subtract
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
da5daef528
commit
85257fc5c4
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ static bool NOINLINE prv_prepare_minute_data(uint16_t uncertain_m, time_t sleep_
|
||||||
|
|
||||||
// See if we need to zero out steps in this record. We check that the start of the minute
|
// See if we need to zero out steps in this record. We check that the start of the minute
|
||||||
// is within the sleep bounds. The WITHIN macro returns true if the test value is
|
// is within the sleep bounds. The WITHIN macro returns true if the test value is
|
||||||
// <= end_value, so we need to subract one minute from the end to see if the start of this
|
// <= end_value, so we need to subtract one minute from the end to see if the start of this
|
||||||
// test minute is entirely within the sleep range.
|
// test minute is entirely within the sleep range.
|
||||||
bool was_sleeping = WITHIN(cbuf_record->utc_sec, sleep_start_utc,
|
bool was_sleeping = WITHIN(cbuf_record->utc_sec, sleep_start_utc,
|
||||||
sleep_end_utc - SECONDS_PER_MINUTE);
|
sleep_end_utc - SECONDS_PER_MINUTE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue