fix warning re: buffer overrun

This commit is contained in:
Joey Castillo 2022-05-09 12:03:24 -04:00
parent 32c6974c0f
commit 91b436237a

View File

@ -282,7 +282,7 @@ static void update(accelerometer_data_acquisition_state_t *state) {
} }
static void update_settings(accelerometer_data_acquisition_state_t *state) { static void update_settings(accelerometer_data_acquisition_state_t *state) {
char buf[12]; char buf[13];
watch_clear_colon(); watch_clear_colon();
if (state->beep_with_countdown) watch_set_indicator(WATCH_INDICATOR_BELL); if (state->beep_with_countdown) watch_set_indicator(WATCH_INDICATOR_BELL);
else watch_clear_indicator(WATCH_INDICATOR_BELL); else watch_clear_indicator(WATCH_INDICATOR_BELL);