Fix build on esp32.

This commit is contained in:
Marius Muja 2023-07-07 19:19:30 -07:00
parent 38629aac52
commit 31b96b634b
1 changed files with 2 additions and 2 deletions

View File

@ -404,8 +404,8 @@ namespace ratgdo {
bool RATGDOComponent::transmit_packet() bool RATGDOComponent::transmit_packet()
{ {
auto now = micros64(); auto now = micros();
while (micros64() - now < 1300) { while (micros() - now < 1300) {
if (this->input_gdo_pin_->digital_read()) { if (this->input_gdo_pin_->digital_read()) {
ESP_LOGD(TAG, "Collision detected, waiting to send packet"); ESP_LOGD(TAG, "Collision detected, waiting to send packet");
this->transmit_pending_ = true; this->transmit_pending_ = true;