🩹 Fix AVR bootscreen RLE decode (#26827)

This commit is contained in:
ellensp 2024-03-02 16:58:56 +13:00 committed by GitHub
parent c8d51c2723
commit ecde3a3158
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,7 +140,7 @@ bool MarlinUI::detected() { return true; }
uint8_t *dst = (uint8_t*)bmp; uint8_t *dst = (uint8_t*)bmp;
auto rle_nybble = [&](const uint16_t i) -> uint8_t { auto rle_nybble = [&](const uint16_t i) -> uint8_t {
const uint8_t b = bmp_rle[i / 2]; const uint8_t b = pgm_read_byte(&bmp_rle[i / 2]);
return (i & 1 ? b & 0xF : b >> 4); return (i & 1 ? b & 0xF : b >> 4);
}; };