mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-13 02:03:38 +00:00
Fix SD capture remaining time formatting -- zero pad minutes.
This commit is contained in:
parent
46d4c919fb
commit
e298e1ec5a
@ -258,7 +258,7 @@ void RecordView::on_tick_second() {
|
|||||||
const uint32_t hours = available_minutes / 60;
|
const uint32_t hours = available_minutes / 60;
|
||||||
const std::string available_time =
|
const std::string available_time =
|
||||||
to_string_dec_uint(hours, 3, ' ') + ":" +
|
to_string_dec_uint(hours, 3, ' ') + ":" +
|
||||||
to_string_dec_uint(minutes, 2, ' ') + ":" +
|
to_string_dec_uint(minutes, 2, '0') + ":" +
|
||||||
to_string_dec_uint(seconds, 2, '0');
|
to_string_dec_uint(seconds, 2, '0');
|
||||||
text_time_available.set(available_time);
|
text_time_available.set(available_time);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user