1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

[nextion] Exit reparse before update TFT (#6589)

This commit is contained in:
Edward Firmo
2024-04-30 00:09:35 +02:00
committed by GitHub
parent 989a64bdcf
commit 05fbb260ee
3 changed files with 25 additions and 3 deletions

View File

@@ -993,9 +993,13 @@ class Nextion : public NextionBase, public PollingComponent, public uart::UARTDe
/**
* Upload the tft file and soft reset Nextion
* @param exit_reparse If true, the function exits reparse mode before uploading the TFT file. This parameter
* defaults to true, ensuring that the display is ready to receive and apply the new TFT file without needing
* to manually reset or reconfigure. Exiting reparse mode is recommended for most upload scenarios to ensure
* the display properly processes the uploaded file command.
* @return bool True: Transfer completed successfuly, False: Transfer failed.
*/
bool upload_tft();
bool upload_tft(bool exit_reparse = true);
void dump_config() override;