Update TasmotaSerial.cpp

This commit is contained in:
Andre Thomas 2019-10-20 11:48:09 +02:00 committed by GitHub
parent 461bcc4d27
commit 73c2fd3cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}