mars clock: formatting
This commit is contained in:
parent
cb609389eb
commit
c4de155083
@ -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);
|
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);
|
else sprintf(&buf[0], "%s $%6d", site_names[state->current_site], sol);
|
||||||
watch_clear_colon();
|
watch_clear_colon();
|
||||||
watch_clear_indicator(WATCH_INDICATOR_24H);
|
watch_clear_indicator(WATCH_INDICATOR_24H);
|
||||||
} else {
|
} else {
|
||||||
mars_clock_hms_t mars_time;
|
mars_clock_hms_t mars_time;
|
||||||
_h_to_hms(&mars_time, lmt);
|
_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);
|
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_colon();
|
||||||
watch_set_indicator(WATCH_INDICATOR_24H);
|
watch_set_indicator(WATCH_INDICATOR_24H);
|
||||||
}
|
}
|
||||||
|
|
||||||
watch_display_string(buf, 0);
|
watch_display_string(buf, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user