Skip to content

Commit

Permalink
Merge pull request repetier#722 from luc-github/development
Browse files Browse the repository at this point in the history
Hide printed time if no extruder
  • Loading branch information
repetier authored Dec 22, 2017
2 parents b8c3524 + 98e8cff commit 14bde81
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/ArduinoAVR/Repetier/Eeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,9 @@ void EEPROM::writeSettings()
#if EEPROM_MODE != 0
writeByte(EPR_SELECTED_LANGUAGE,Com::tLanguage);
writeLong(EPR_BAUDRATE, Com::tEPRBaudrate);
#if NUM_EXTRUDER > 0
writeFloat(EPR_PRINTING_DISTANCE, Com::tEPRFilamentPrinted);
#endif
writeLong(EPR_PRINTING_TIME, Com::tEPRPrinterActive);
writeLong(EPR_MAX_INACTIVE_TIME, Com::tEPRMaxInactiveTime);
writeLong(EPR_STEPPER_INACTIVE_TIME, Com::tEPRStopAfterInactivty);
Expand Down
4 changes: 2 additions & 2 deletions src/ArduinoAVR/Repetier/uimenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

UI_PAGE6_T(ui_page1, UI_TEXT_MAINPAGE6_1_ID, UI_TEXT_MAINPAGE6_2_ID, UI_TEXT_MAINPAGE6_3_ID, UI_TEXT_MAINPAGE6_4_ID, UI_TEXT_MAINPAGE6_5_ID, UI_TEXT_MAINPAGE6_6_ID)

#if EEPROM_MODE != 0
#if EEPROM_MODE != 0 && NUM_EXTRUDER > 0
UI_PAGE6_T(ui_page2, UI_TEXT_PRINT_TIME_ID, UI_TEXT_PRINT_TIME_VALUE_ID, UI_TEXT_PRINT_FILAMENT_ID, UI_TEXT_PRINT_FILAMENT_VALUE_ID,UI_TEXT_EMPTY_ID,UI_TEXT_STATUS_ID)
#define UI_PRINTTIME_PAGES ,&ui_page2
#define UI_PRINTTIME_COUNT 1
Expand Down Expand Up @@ -367,7 +367,7 @@ UI_PAGE4_T(ui_page3
, UI_TEXT_EMPTY_ID, UI_TEXT_EMPTY_ID, UI_TEXT_EMPTY_ID, UI_TEXT_STATUS_ID
#endif
)
#if EEPROM_MODE != 0
#if EEPROM_MODE != 0 && NUM_EXTRUDER > 0
UI_PAGE4_T(ui_page4, UI_TEXT_PRINT_TIME_ID, UI_TEXT_PRINT_TIME_VALUE_ID, UI_TEXT_PRINT_FILAMENT_ID, UI_TEXT_PRINT_FILAMENT_VALUE_ID)
#define UI_PRINTTIME_PAGES ,&ui_page4
#define UI_PRINTTIME_COUNT 1
Expand Down
2 changes: 2 additions & 0 deletions src/ArduinoDUE/Repetier/Eeprom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,9 @@ void EEPROM::writeSettings()
#if EEPROM_MODE != 0
writeByte(EPR_SELECTED_LANGUAGE,Com::tLanguage);
writeLong(EPR_BAUDRATE, Com::tEPRBaudrate);
#if NUM_EXTRUDER > 0
writeFloat(EPR_PRINTING_DISTANCE, Com::tEPRFilamentPrinted);
#endif
writeLong(EPR_PRINTING_TIME, Com::tEPRPrinterActive);
writeLong(EPR_MAX_INACTIVE_TIME, Com::tEPRMaxInactiveTime);
writeLong(EPR_STEPPER_INACTIVE_TIME, Com::tEPRStopAfterInactivty);
Expand Down
4 changes: 2 additions & 2 deletions src/ArduinoDUE/Repetier/uimenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

UI_PAGE6_T(ui_page1, UI_TEXT_MAINPAGE6_1_ID, UI_TEXT_MAINPAGE6_2_ID, UI_TEXT_MAINPAGE6_3_ID, UI_TEXT_MAINPAGE6_4_ID, UI_TEXT_MAINPAGE6_5_ID, UI_TEXT_MAINPAGE6_6_ID)

#if EEPROM_MODE != 0
#if EEPROM_MODE != 0 && NUM_EXTRUDER > 0
UI_PAGE6_T(ui_page2, UI_TEXT_PRINT_TIME_ID, UI_TEXT_PRINT_TIME_VALUE_ID, UI_TEXT_PRINT_FILAMENT_ID, UI_TEXT_PRINT_FILAMENT_VALUE_ID,UI_TEXT_EMPTY_ID,UI_TEXT_STATUS_ID)
#define UI_PRINTTIME_PAGES ,&ui_page2
#define UI_PRINTTIME_COUNT 1
Expand Down Expand Up @@ -367,7 +367,7 @@ UI_PAGE4_T(ui_page3
, UI_TEXT_EMPTY_ID, UI_TEXT_EMPTY_ID, UI_TEXT_EMPTY_ID, UI_TEXT_STATUS_ID
#endif
)
#if EEPROM_MODE != 0
#if EEPROM_MODE != 0 && NUM_EXTRUDER > 0
UI_PAGE4_T(ui_page4, UI_TEXT_PRINT_TIME_ID, UI_TEXT_PRINT_TIME_VALUE_ID, UI_TEXT_PRINT_FILAMENT_ID, UI_TEXT_PRINT_FILAMENT_VALUE_ID)
#define UI_PRINTTIME_PAGES ,&ui_page4
#define UI_PRINTTIME_COUNT 1
Expand Down

0 comments on commit 14bde81

Please sign in to comment.