Skip to content

Commit da1acf0

Browse files
authored
Merge pull request #243 from openhamclock/issue-232
Handle 32-bit fb support when available
2 parents 7a84401 + 6a26ae7 commit da1acf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ESPHamClock/ArduinoLib/Adafruit_RA8875.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ bool Adafruit_RA8875::begin (int not_used)
449449
// try to disable some fb interference
450450
ourSystem ("dmesg -n 1");
451451

452-
// try to engage 16 bit
453-
ourSystem ("fbset -depth 16");
452+
// try to engage depth matching compile-time depth
453+
ourSystem ("fbset -depth %d", BITSPFBPIX);
454454
ourSystem ("fbset");
455455

456456
// init for mouse thread

0 commit comments

Comments
 (0)