mars clock: formatting

This commit is contained in:
Joey Castillo 2022-04-06 15:55:06 -04:00
parent cb609389eb
commit c4de155083

View file

@ -94,13 +94,13 @@ static void _update(movement_settings_t *settings, mars_time_state_t *state) {
if (sol < 1000) sprintf(&buf[0], "%s Sol%3d", site_names[state->current_site], sol);
else sprintf(&buf[0], "%s $%6d", site_names[state->current_site], sol);
watch_clear_colon();
watch_clear_indicator(WATCH_INDICATOR_24H);
watch_clear_indicator(WATCH_INDICATOR_24H);
} else {
mars_clock_hms_t mars_time;
_h_to_hms(&mars_time, lmt);
sprintf(&buf[0], "%s %02d%02d%02d", site_names[state->current_site], mars_time.hour, mars_time.minute, mars_time.second);
watch_set_colon();
watch_set_indicator(WATCH_INDICATOR_24H);
watch_set_indicator(WATCH_INDICATOR_24H);
}
watch_display_string(buf, 0);