mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 21:53:48 +00:00
Reduce number of calls to fetch time in the main loop (#8804)
This commit is contained in:
@@ -240,7 +240,7 @@ void EthernetComponent::setup() {
|
||||
}
|
||||
|
||||
void EthernetComponent::loop() {
|
||||
const uint32_t now = millis();
|
||||
const uint32_t now = App.get_loop_component_start_time();
|
||||
|
||||
switch (this->state_) {
|
||||
case EthernetComponentState::STOPPED:
|
||||
|
||||
Reference in New Issue
Block a user