@@ -336,7 +336,7 @@ void ICON_Button(const bool selected, const int iconid, const frame_rect_t &ico,
336
336
//
337
337
void ICON_Print () {
338
338
constexpr frame_rect_t ico = { 17 , 110 , 110 , 100 };
339
- constexpr text_info_t txt = { 1 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
339
+ constexpr text_info_t txt = { 1 , { 405 , 447 }, 27 , 15 };
340
340
ICON_Button (select_page.now == PAGE_PRINT, ICON_Print_0, ico, txt, GET_TEXT_F (MSG_BUTTON_PRINT));
341
341
}
342
342
@@ -345,7 +345,7 @@ void ICON_Print() {
345
345
//
346
346
void ICON_Prepare () {
347
347
constexpr frame_rect_t ico = { 145 , 110 , 110 , 100 };
348
- constexpr text_info_t txt = { 31 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
348
+ constexpr text_info_t txt = { 31 , { 405 , 447 }, 27 , 15 };
349
349
ICON_Button (select_page.now == PAGE_PREPARE, ICON_Prepare_0, ico, txt, GET_TEXT_F (MSG_PREPARE));
350
350
}
351
351
@@ -354,7 +354,7 @@ void ICON_Prepare() {
354
354
//
355
355
void ICON_Control () {
356
356
constexpr frame_rect_t ico = { 17 , 226 , 110 , 100 };
357
- constexpr text_info_t txt = { 61 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
357
+ constexpr text_info_t txt = { 61 , { 405 , 447 }, 27 , 15 };
358
358
ICON_Button (select_page.now == PAGE_CONTROL, ICON_Control_0, ico, txt, GET_TEXT_F (MSG_CONTROL));
359
359
}
360
360
@@ -363,7 +363,7 @@ void ICON_Control() {
363
363
//
364
364
void ICON_AdvSettings () {
365
365
constexpr frame_rect_t ico = { 145 , 226 , 110 , 100 };
366
- constexpr text_info_t txt = { 91 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
366
+ constexpr text_info_t txt = { 91 , { 405 , 447 }, 27 , 15 };
367
367
ICON_Button (select_page.now == PAGE_ADVANCE, ICON_Info_0, ico, txt, GET_TEXT_F (MSG_BUTTON_ADVANCED));
368
368
}
369
369
@@ -372,7 +372,7 @@ void ICON_AdvSettings() {
372
372
//
373
373
void ICON_Tune () {
374
374
constexpr frame_rect_t ico = { 8 , 232 , 80 , 100 };
375
- constexpr text_info_t txt = { 121 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
375
+ constexpr text_info_t txt = { 121 , { 405 , 447 }, 27 , 15 };
376
376
ICON_Button (select_print.now == PRINT_SETUP, ICON_Setup_0, ico, txt, GET_TEXT_F (MSG_TUNE));
377
377
}
378
378
@@ -381,7 +381,7 @@ void ICON_Tune() {
381
381
//
382
382
void ICON_Pause () {
383
383
constexpr frame_rect_t ico = { 96 , 232 , 80 , 100 };
384
- constexpr text_info_t txt = { 181 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
384
+ constexpr text_info_t txt = { 181 , { 405 , 447 }, 27 , 15 };
385
385
ICON_Button (select_print.now == PRINT_PAUSE_RESUME, ICON_Pause_0, ico, txt, GET_TEXT_F (MSG_BUTTON_PAUSE));
386
386
}
387
387
@@ -390,7 +390,7 @@ void ICON_Pause() {
390
390
//
391
391
void ICON_Resume () {
392
392
constexpr frame_rect_t ico = { 96 , 232 , 80 , 100 };
393
- constexpr text_info_t txt = { 1 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 15 };
393
+ constexpr text_info_t txt = { 1 , { 405 , 447 }, 27 , 15 };
394
394
ICON_Button (select_print.now == PRINT_PAUSE_RESUME, ICON_Continue_0, ico, txt, GET_TEXT_F (MSG_BUTTON_RESUME));
395
395
}
396
396
@@ -399,7 +399,7 @@ void ICON_Resume() {
399
399
//
400
400
void ICON_Stop () {
401
401
constexpr frame_rect_t ico = { 184 , 232 , 80 , 100 };
402
- constexpr text_info_t txt = { 151 , { 405 , TERN (USE_STOCK_DWIN_SET, 446 , 447 ) }, 27 , 12 };
402
+ constexpr text_info_t txt = { 151 , { 405 , 447 }, 27 , 12 };
403
403
ICON_Button (select_print.now == PRINT_STOP, ICON_Stop_0, ico, txt, GET_TEXT_F (MSG_BUTTON_STOP));
404
404
}
405
405
@@ -482,8 +482,7 @@ void dwinResetStatusLine() {
482
482
// Djb2 hash algorithm
483
483
uint32_t getHash (char * str) {
484
484
uint32_t hash = 5381 ;
485
- char c;
486
- while ((c = *str++)) hash = ((hash << 5 ) + hash) + c; /* hash * 33 + c */
485
+ for (char c; (c = *str++);) hash = ((hash << 5 ) + hash) + c; /* hash * 33 + c */
487
486
return hash;
488
487
}
489
488
@@ -1943,13 +1942,7 @@ void dwinRedrawScreen() {
1943
1942
case PAUSE_MESSAGE_INSERT: dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_INSERT), BTN_Continue); break ;
1944
1943
case PAUSE_MESSAGE_LOAD: dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_LOAD)); break ;
1945
1944
case PAUSE_MESSAGE_UNLOAD: dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_UNLOAD)); break ; // Unload of pause and Unload of M702
1946
- case PAUSE_MESSAGE_PURGE:
1947
- #if ENABLED(ADVANCED_PAUSE_CONTINUOUS_PURGE)
1948
- dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_CONT_PURGE));
1949
- #else
1950
- dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_PURGE));
1951
- #endif
1952
- break ;
1945
+ case PAUSE_MESSAGE_PURGE: dwinPopupPause (GET_TEXT_F (TERN (ADVANCED_PAUSE_CONTINUOUS_PURGE, MSG_FILAMENT_CHANGE_CONT_PURGE, MSG_FILAMENT_CHANGE_PURGE))); break ;
1953
1946
case PAUSE_MESSAGE_OPTION: gotoFilamentPurge (); break ;
1954
1947
case PAUSE_MESSAGE_RESUME: dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_RESUME)); break ;
1955
1948
case PAUSE_MESSAGE_HEAT: dwinPopupPause (GET_TEXT_F (MSG_FILAMENT_CHANGE_HEAT), BTN_Continue); break ;
@@ -3141,7 +3134,7 @@ void drawControlMenu() {
3141
3134
#if ENABLED(EEPROM_SETTINGS)
3142
3135
MENU_ITEM (ICON_WriteEEPROM, MSG_STORE_EEPROM, onDrawWriteEeprom, writeEEPROM);
3143
3136
MENU_ITEM (ICON_ReadEEPROM, MSG_LOAD_EEPROM, onDrawReadEeprom, readEEPROM);
3144
- MENU_ITEM (ICON_ResumeEEPROM , MSG_RESTORE_DEFAULTS, onDrawResetEeprom, resetEEPROM);
3137
+ MENU_ITEM (ICON_ResetEEPROM , MSG_RESTORE_DEFAULTS, onDrawResetEeprom, resetEEPROM);
3145
3138
#endif
3146
3139
MENU_ITEM (ICON_Reboot, MSG_RESET_PRINTER, onDrawMenuItem, rebootPrinter);
3147
3140
MENU_ITEM (ICON_Info, MSG_INFO_SCREEN, onDrawInfoSubMenu, gotoInfoMenu);
@@ -3957,8 +3950,8 @@ void drawStepsMenu() {
3957
3950
if (SET_MENU (zOffsetWizMenu, MSG_PROBE_WIZARD, 4 )) {
3958
3951
BACK_ITEM (drawPrepareMenu);
3959
3952
MENU_ITEM (ICON_Homing, MSG_AUTO_HOME, onDrawMenuItem, autoHome);
3960
- MENU_ITEM_F (ICON_MoveZ0, " Move Z to Home " , onDrawMenuItem, setMoveZto0);
3961
- EDIT_ITEM (ICON_Zoffset, MSG_ZPROBE_ZOFFSET , onDrawPFloat2Menu, setZOffset, &BABY_Z_VAR);
3953
+ MENU_ITEM (ICON_MoveZ0, MSG_MOVE_NOZZLE_TO_BED , onDrawMenuItem, setMoveZto0);
3954
+ EDIT_ITEM (ICON_Zoffset, MSG_XATC_UPDATE_Z_OFFSET , onDrawPFloat2Menu, setZOffset, &BABY_Z_VAR);
3962
3955
}
3963
3956
updateMenu (zOffsetWizMenu);
3964
3957
if (!axis_is_trusted (Z_AXIS)) LCD_MESSAGE_F (" WARNING: Z position unknown, move Z to home" );
0 commit comments