Update to latest version of mcci-catena/arduino-lmic library

This commit is contained in:
Manuel Bleichenbacher
2018-10-21 23:28:25 +02:00
parent 4baa7a9a4c
commit 2e351ada9a
15 changed files with 257 additions and 104 deletions

2
src/lmic/lmic_us915.c Executable file → Normal file
View File

@ -87,6 +87,8 @@ u4_t LMICus915_convFreq(xref2cu1_t ptr) {
}
bit_t LMIC_setupChannel(u1_t chidx, u4_t freq, u2_t drmap, s1_t band) {
LMIC_API_PARAMETER(band);
if (chidx < 72 || chidx >= 72 + MAX_XCHANNELS)
return 0; // channels 0..71 are hardwired
LMIC.xchFreq[chidx - 72] = freq;