From 803d75cd9d2995002c6dab01f292580950d4f819 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Wed, 28 Jun 2023 19:14:08 +1000 Subject: [PATCH] Init startup to both buffers Just in case --- source/Core/Drivers/OLED.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/Core/Drivers/OLED.cpp b/source/Core/Drivers/OLED.cpp index 295a249e..1233209f 100644 --- a/source/Core/Drivers/OLED.cpp +++ b/source/Core/Drivers/OLED.cpp @@ -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.