Keep baud rate after connection

This commit is contained in:
Edward Firmo
2023-11-30 20:02:58 +01:00
parent 98187fe4a4
commit cc10cfe0c5
3 changed files with 12 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ Text tft_version
Dragging : 0
Send Component ID : disabled
Associated Keyboard: none
Text : TFT: v2023.11.0
Text : TFT: v2023.11.2
Max. Text Size : 20
Events
@@ -189,15 +189,21 @@ Timer tm_esphome
Events
Timer Event
if(baud==115200)
if(framework.txt=="")
{
bauds=921600
if(baud==115200)
{
bauds=921600
}else
{
bauds=115200
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
}else
{
bauds=115200
tm_esphome.en=0
}
covx baud,baud_rate.txt,0,0
baud_rate.txt+=" bps"
Timer tm_pageid
Attributes