allow payload callback, allow boot status

This commit is contained in:
Siwat Sirichai 2024-01-11 23:19:50 +07:00
parent ffe55fd978
commit 810c2794f1
5 changed files with 48 additions and 2 deletions

View file

@ -871,4 +871,16 @@ void InternalDisplay::handleACStateChange(uint8_t mode, uint8_t fan_speed, uint8
this->sendStopBytes();
// Update the AC state
this->refreshAC();
}
/**
* @brief Set the boot status text
*
* @param text The text to set
*/
void InternalDisplay::setBootStatus(const char *text) {
this->displayAdapter->print("boot_state.txt=\"");
this->displayAdapter->print(text);
this->displayAdapter->print("\"");
this->sendStopBytes();
}