mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-18 20:23:27 +02:00
Tweak Improv serial to build in IDF 5 (#5331)
This commit is contained in:
@@ -48,7 +48,7 @@ uint8_t ImprovSerialComponent::read_byte_() {
|
||||
this->hw_serial_->readBytes(&data, 1);
|
||||
#endif
|
||||
#ifdef USE_ESP_IDF
|
||||
uart_read_bytes(this->uart_num_, &data, 1, 20 / portTICK_RATE_MS);
|
||||
uart_read_bytes(this->uart_num_, &data, 1, 20 / portTICK_PERIOD_MS);
|
||||
#endif
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user