1
0
forked from me/IronOS

Init startup to both buffers

Just in case
This commit is contained in:
Ben V. Brown
2023-06-28 19:14:08 +10:00
parent 159555f299
commit 803d75cd9d

View File

@@ -127,6 +127,7 @@ void OLED::initialize() {
#endif
displayOffset = 0;
memcpy(&screenBuffer[0], &REFRESH_COMMANDS[0], sizeof(REFRESH_COMMANDS));
memcpy(&secondFrameBuffer[0], &REFRESH_COMMANDS[0], sizeof(REFRESH_COMMANDS));
// Set the display to be ON once the settings block is sent and send the
// initialisation data to the OLED.