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:
committed by
GitHub
parent
6e5cfac927
commit
875b803483
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user