Merge pull request #6699 from andrethomas/patch-1

Update TasmotaSerial.cpp - Change speed >= 50000 for 57600bps
This commit is contained in:
Theo Arends 2019-10-20 12:01:55 +02:00 committed by GitHub
commit 01c138c2b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ bool TasmotaSerial::begin(long speed, int stop_bits) {
m_bit_time = ESP.getCpuFreqMHz() * 1000000 / speed;
m_bit_start_time = m_bit_time + m_bit_time/3 - (ESP.getCpuFreqMHz() > 120 ? 700 : 500); // pre-compute first wait
m_high_speed = (speed >= 9600);
m_very_high_speed = (speed >= 100000);
m_very_high_speed = (speed >= 50000);
}
return m_valid;
}