mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 23:52:28 +01:00
Reduce number of calls to fetch time in the main loop (#8804)
This commit is contained in:
@@ -92,7 +92,7 @@ void ESP32ImprovComponent::loop() {
|
||||
|
||||
if (!this->incoming_data_.empty())
|
||||
this->process_incoming_data_();
|
||||
uint32_t now = millis();
|
||||
uint32_t now = App.get_loop_component_start_time();
|
||||
|
||||
switch (this->state_) {
|
||||
case improv::STATE_STOPPED:
|
||||
|
Reference in New Issue
Block a user