Browse Source

Tweak animated draw call

Scott Lahteine 5 years ago
parent
commit
a07c4af393
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp

+ 1
- 2
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp View File

211
     #else
211
     #else
212
       constexpr millis_t d = MARLIN_BOOTSCREEN_FRAME_TIME;
212
       constexpr millis_t d = MARLIN_BOOTSCREEN_FRAME_TIME;
213
       LOOP_L_N(f, COUNT(marlin_bootscreen_animation)) {
213
       LOOP_L_N(f, COUNT(marlin_bootscreen_animation)) {
214
-        const u8g_pgm_uint8_t * const bmp = (u8g_pgm_uint8_t*)pgm_read_ptr(&marlin_bootscreen_animation[f]);
215
-        draw_bootscreen_bmp(bmp);
214
+        draw_bootscreen_bmp((uint8_t*)pgm_read_ptr(&marlin_bootscreen_animation[f]));
216
         if (d) safe_delay(d);
215
         if (d) safe_delay(d);
217
       }
216
       }
218
     #endif
217
     #endif

Loading…
Cancel
Save