Fix build on esp32.
This commit is contained in:
parent
38629aac52
commit
31b96b634b
|
@ -404,8 +404,8 @@ namespace ratgdo {
|
|||
|
||||
bool RATGDOComponent::transmit_packet()
|
||||
{
|
||||
auto now = micros64();
|
||||
while (micros64() - now < 1300) {
|
||||
auto now = micros();
|
||||
while (micros() - now < 1300) {
|
||||
if (this->input_gdo_pin_->digital_read()) {
|
||||
ESP_LOGD(TAG, "Collision detected, waiting to send packet");
|
||||
this->transmit_pending_ = true;
|
||||
|
|
Loading…
Reference in New Issue