Skip to content

Commit

Permalink
Corrected range of channels used
Browse files Browse the repository at this point in the history
  • Loading branch information
aryansinghdhiman2 committed Jul 23, 2023
1 parent 206ee34 commit 77536c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arduino-rfm/lorawan-arduino-rfm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void LoRaWANClass::randomChannel()
freq_idx = random(0,8);
LoRa_Settings.Channel_Rx=freq_idx; // same rx and tx channel
#elif defined(IN_865)
freq_idx = random(0,4);
freq_idx = random(0,3);
LoRa_Settings.Channel_Rx=freq_idx; // same rx and tx channel
#else // US_915 or AU_915
freq_idx = random(0, 8);
Expand Down

0 comments on commit 77536c9

Please sign in to comment.