@@ -1225,14 +1225,19 @@ void HMI_WaitForUser() {
1225
1225
}
1226
1226
1227
1227
void HMI_Init () {
1228
- DWINUI::Draw_Box (1 , Color_Black, { 5 , 220 , DWIN_WIDTH - 5 , DWINUI::fontHeight () });
1229
- DWINUI::Draw_CenteredString (Color_White, 220 , F (" Professional Firmware " ));
1230
- for (uint16_t t = 15 ; t <= 257 ; t += 10 ) {
1231
- DWINUI::Draw_Icon (ICON_Bar, 15 , 260 );
1232
- DWIN_Draw_Rectangle (1 , HMI_data.Background_Color , t, 260 , 257 , 280 );
1233
- DWIN_UpdateLCD ();
1234
- delay (50 );
1235
- }
1228
+ #if ENABLED(SHOW_BOOTSCREEN)
1229
+ #ifndef BOOTSCREEN_TIMEOUT
1230
+ #define BOOTSCREEN_TIMEOUT 1100
1231
+ #endif
1232
+ DWINUI::Draw_Box (1 , Color_Black, { 5 , 220 , DWIN_WIDTH - 5 , DWINUI::fontHeight () });
1233
+ DWINUI::Draw_CenteredString (Color_White, 220 , F (" Professional Firmware " ));
1234
+ for (uint16_t t = 15 ; t < 257 ; t += 11 ) {
1235
+ DWINUI::Draw_Icon (ICON_Bar, 15 , 260 );
1236
+ DWIN_Draw_Rectangle (1 , HMI_data.Background_Color , t, 260 , 257 , 280 );
1237
+ DWIN_UpdateLCD ();
1238
+ delay ((BOOTSCREEN_TIMEOUT) / 22 );
1239
+ }
1240
+ #endif
1236
1241
HMI_SetLanguage ();
1237
1242
}
1238
1243
0 commit comments