From 31b96b634b695b8d4fb443642ceb49c0f64fff44 Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Fri, 7 Jul 2023 19:19:30 -0700 Subject: [PATCH] Fix build on esp32. --- components/ratgdo/ratgdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index d16db3c..19fa1e3 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -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;