We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77e12da commit fe3b043Copy full SHA for fe3b043
cores/panstamp/panstamp.cpp
@@ -43,7 +43,6 @@ void endOfReception(void);
43
__attribute__((interrupt(CC1101_VECTOR)))
44
void radioISR(void)
45
{
46
-static int count=0;
47
unsigned int coreIntSource = RF1AIV; // Radio Core interrupt register
48
49
// Radio Core interrupt
@@ -316,6 +315,9 @@ void PANSTAMP::sleepSec(uint16_t time, RTCSRC source)
316
315
bool PANSTAMP::sendData(CCPACKET packet)
317
318
#ifdef FHSS_ENABLED
+ currentChannelIndex = 0;
319
+ radio.setChannel(getCurrentChannel());
320
+
321
CCPACKET tmpPacket;
322
uint8_t i, nbOfBursts = packet.length / FHSS_BURST_LENGTH;
323
uint8_t lengthOfLastBurst = packet.length % FHSS_BURST_LENGTH;
0 commit comments