|
@@ -313,8 +313,8 @@ bool mmu_print_saved = false;
|
|
|
|
|
|
// storing estimated time to end of print counted by slicer
|
|
|
uint8_t print_percent_done_normal = PRINT_PERCENT_DONE_INIT;
|
|
|
-uint16_t print_time_remaining_normal = PRINT_TIME_REMAINING_INIT; //estimated remaining print time in minutes
|
|
|
uint8_t print_percent_done_silent = PRINT_PERCENT_DONE_INIT;
|
|
|
+uint16_t print_time_remaining_normal = PRINT_TIME_REMAINING_INIT; //estimated remaining print time in minutes
|
|
|
uint16_t print_time_remaining_silent = PRINT_TIME_REMAINING_INIT; //estimated remaining print time in minutes
|
|
|
uint16_t print_time_to_change_normal = PRINT_TIME_REMAINING_INIT; //estimated remaining time to next change in minutes
|
|
|
uint16_t print_time_to_change_silent = PRINT_TIME_REMAINING_INIT; //estimated remaining time to next change in minutes
|
|
@@ -6389,14 +6389,19 @@ Sigma_Exit:
|
|
|
if(code_seen('R')) print_time_remaining_normal = code_value();
|
|
|
if(code_seen('Q')) print_percent_done_silent = code_value();
|
|
|
if(code_seen('S')) print_time_remaining_silent = code_value();
|
|
|
- if(code_seen('C')) print_time_to_change_normal = code_value();
|
|
|
- if(code_seen('D')) print_time_to_change_silent = code_value();
|
|
|
-
|
|
|
- {
|
|
|
- const char* _msg_mode_done_remain = _N("%S MODE: Percent done: %d; print time remaining in mins: %d; Change in mins: %d\n");
|
|
|
- printf_P(_msg_mode_done_remain, _N("NORMAL"), int(print_percent_done_normal), print_time_remaining_normal, print_time_to_change_normal);
|
|
|
- printf_P(_msg_mode_done_remain, _N("SILENT"), int(print_percent_done_silent), print_time_remaining_silent, print_time_to_change_silent);
|
|
|
- }
|
|
|
+ if(code_seen('C')){
|
|
|
+ float print_time_to_change_normal_f = code_value_float();
|
|
|
+ print_time_to_change_normal = ( print_time_to_change_normal_f <= 0 ) ? PRINT_TIME_REMAINING_INIT : print_time_to_change_normal_f;
|
|
|
+ }
|
|
|
+ if(code_seen('D')){
|
|
|
+ float print_time_to_change_silent_f = code_value_float();
|
|
|
+ print_time_to_change_silent = ( print_time_to_change_silent_f <= 0 ) ? PRINT_TIME_REMAINING_INIT : print_time_to_change_silent_f;
|
|
|
+ }
|
|
|
+ {
|
|
|
+ const char* _msg_mode_done_remain = _N("%S MODE: Percent done: %hhd; print time remaining in mins: %d; Change in mins: %d\n");
|
|
|
+ printf_P(_msg_mode_done_remain, _N("NORMAL"), int8_t(print_percent_done_normal), print_time_remaining_normal, print_time_to_change_normal);
|
|
|
+ printf_P(_msg_mode_done_remain, _N("SILENT"), int8_t(print_percent_done_silent), print_time_remaining_silent, print_time_to_change_silent);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
/*!
|