Fix build on esp32.
This commit is contained in:
parent
38629aac52
commit
31b96b634b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue