Mutex Serial Access

This commit is contained in:
Siwat Sirichai 2024-01-14 14:11:09 +07:00
parent 1ecd97d821
commit 29171e2a01
1 changed files with 1 additions and 0 deletions

View File

@ -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;