mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
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);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue