Don't display remaining time on button with a preceeding 0

This commit is contained in:
suchmememanyskill
2023-11-13 14:52:54 +01:00
parent 858acb59aa
commit 844a1c7ac8

View File

@@ -49,7 +49,7 @@ static void update_printer_data_time(lv_event_t * e){
} else if (hours >= 1){ } else if (hours >= 1){
sprintf(time_buffer, "%luh%02lum", hours, minutes); sprintf(time_buffer, "%luh%02lum", hours, minutes);
} else { } else {
sprintf(time_buffer, "%02lum", minutes); sprintf(time_buffer, "%lum", minutes);
} }
lv_label_set_text(label, time_buffer); lv_label_set_text(label, time_buffer);