From a0822a968359f586ff0c5d7306acd0fa1ec9ec85 Mon Sep 17 00:00:00 2001 From: tuxphone <67556506+tuxphone@users.noreply.github.com> Date: Tue, 6 Oct 2020 13:56:59 +0200 Subject: [PATCH] Using RxDutyCycle function of the Semtech sx126x --- src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7d4159e..ec4d4d0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,6 @@ #include #include "config.h" -//#include "sx126x.h" -//#include "asr_board.c" + // CONFIGURATION: // Change RegionCode, Frequency, Speed in config.h ! #define VERBOSE // define to SILENT to turn off serial messages @@ -13,13 +12,11 @@ static MeshPacket thePacket; static ChannelSettings ChanSet; static RadioEvents_t RadioEvents; -//static TimerEvent_t CheckRadio; static uint32_t lastreceivedID = 0; static uint32_t startTime = 0; static uint32_t symbolTime; static uint32_t sleepTime; static uint32_t rxTime; -//static bool noTimer; static bool flag_No_Cycle = false; @@ -69,7 +66,6 @@ void setup() { RadioEvents.TxTimeout = onTxTimeout; RadioEvents.RxDone = onRxDone; Radio.Init( &RadioEvents ); - //Radio.Sleep(); memcpy(ChanSet.name, MESHTASTIC_NAME, 12); ChanSet.channel_num = hash( MESHTASTIC_NAME ) % regions[REGION].numChannels; // see config.h ChanSet.tx_power = (regions[REGION].powerLimit == 0) ? TX_MAX_POWER : MIN(regions[REGION].powerLimit, TX_MAX_POWER) ;