working basic OTA
This commit is contained in:
parent
df09914bd3
commit
a2fe4a3d67
5 changed files with 207 additions and 195 deletions
|
@ -510,6 +510,7 @@ void ESPMegaDisplay::reset()
|
|||
ESPMegaDisplay::ESPMegaDisplay(HardwareSerial *displayAdapter)
|
||||
{
|
||||
this->serialMutex = xSemaphoreCreateMutex();
|
||||
this->otaBytesWritten = 0;
|
||||
this->displayAdapter = displayAdapter;
|
||||
this->currentPage = 0;
|
||||
this->rx_buffer_index = 0;
|
||||
|
@ -738,4 +739,13 @@ void ESPMegaDisplay::endUpdate()
|
|||
this->reset();
|
||||
delay(500);
|
||||
this->begin();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Gets the number of bytes written during an OTA update.
|
||||
* @return The number of bytes written.
|
||||
*/
|
||||
size_t ESPMegaDisplay::getOtaBytesWritten()
|
||||
{
|
||||
return this->otaBytesWritten;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue