From d47fdc891bd366527e557d92b6bf3cf0b6d19c0c Mon Sep 17 00:00:00 2001 From: sh123 Date: Mon, 25 Oct 2021 17:39:10 +0300 Subject: [PATCH] Cleanup --- loraprs_service.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/loraprs_service.cpp b/loraprs_service.cpp index 7fb8466..b81ca98 100644 --- a/loraprs_service.cpp +++ b/loraprs_service.cpp @@ -176,13 +176,9 @@ void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int syn //radio_->forceLDRO(false); //radio_->setRfSwitchPins(4, 5); -#if MODULE_NAME == SX1268 - radio_->clearDio1Action(); - radio_->setDio1Action(onLoraDataAvailableIsr); -#else radio_->clearDio0Action(); radio_->setDio0Action(onLoraDataAvailableIsr); -#endif + state = radio_->startReceive(); if (state != ERR_NONE) { LOG_ERROR("Receive start error:", state);