mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
Tweak Improv serial to build in IDF 5 (#5331)
This commit is contained in:
parent
aabe0091cc
commit
22c0b0abaa
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ uint8_t ImprovSerialComponent::read_byte_() {
|
||||||
this->hw_serial_->readBytes(&data, 1);
|
this->hw_serial_->readBytes(&data, 1);
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_ESP_IDF
|
#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
|
#endif
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue