1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-20 00:35:44 +00:00

Remove "delay_microseconds_accurate()" and improve systemwide delayMicroseconds() (#2497)

This commit is contained in:
Carlos Garcia Saura
2021-11-10 04:22:00 +01:00
committed by GitHub
parent 6e5cfac927
commit 875b803483
8 changed files with 25 additions and 30 deletions

View File

@@ -121,10 +121,8 @@ void RemoteTransmitterComponent::send_internal(uint32_t send_times, uint32_t sen
} else {
this->status_clear_warning();
}
if (i + 1 < send_times) {
delay(send_wait / 1000UL);
delayMicroseconds(send_wait % 1000UL);
}
if (i + 1 < send_times)
delayMicroseconds(send_wait);
}
}