Fix SD capture remaining time formatting -- zero pad minutes.

This commit is contained in:
Jared Boone 2016-05-11 12:34:09 -07:00
parent 46d4c919fb
commit e298e1ec5a

View File

@ -258,7 +258,7 @@ void RecordView::on_tick_second() {
const uint32_t hours = available_minutes / 60;
const std::string available_time =
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');
text_time_available.set(available_time);
}