Skip to content

Commit

Permalink
Fix num param update_msg
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardtfn committed Dec 21, 2023
1 parent 4f64590 commit 2a0968e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions advanced/esphome/nspanel_esphome_addon_upload_tft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ script:
return upload_end_(false);
}
if (not display_mode->state > 0) {
if (display_mode->state <= 0) {
ESP_LOGD(TAG, "Setting Nextion protocol reparse mode to passive");
exit_reparse->execute();
disable_boot_timers_();
Expand Down Expand Up @@ -743,7 +743,7 @@ script:
return upload_end_(false);
}
if (not display_mode->state > 0) {
if (display_mode->state <= 0) {
ESP_LOGD(TAG, "Setting Nextion protocol reparse mode to passive");
exit_reparse->execute();
disable_boot_timers_();
Expand Down Expand Up @@ -944,7 +944,7 @@ script:
display_wrapped_text->execute("confirm.body", "Try #3 failed. Restarting display.", 18);
} else {
lovelace_custom_command->execute("pageType~popupNotify");
sprintf(update_msg, "entityUpdateDetail~~Upload TFT - %s~65535~~0~~0~Power cycle display~65535~10000~3~~~", framework.c_str(), original_baud_rate_);
sprintf(update_msg, "entityUpdateDetail~~Upload TFT - %s~65535~~0~~0~Power cycle display~65535~10000~3~~~", framework.c_str());
lovelace_custom_command->execute(update_msg);
}
delay_seconds_(3);
Expand Down

0 comments on commit 2a0968e

Please sign in to comment.