From 29171e2a0169d6d65d03eb5518f34eec09335823 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Sun, 14 Jan 2024 14:11:09 +0700 Subject: [PATCH] Mutex Serial Access --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaDisplay.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaDisplay.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaDisplay.cpp index f1135cd..5110b9e 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaDisplay.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaDisplay.cpp @@ -508,6 +508,7 @@ void ESPMegaDisplay::reset() */ ESPMegaDisplay::ESPMegaDisplay(HardwareSerial *displayAdapter) { + this->serialMutex = xSemaphoreCreateMutex(); this->displayAdapter = displayAdapter; this->currentPage = 0; this->rx_buffer_index = 0;