Skip to content

Commit

Permalink
Fix #434: wrong FSK detection in LMIC*_isFsk()
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Sep 9, 2019
1 parent 69501b6 commit 2849ceb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lmic/lmic_bandplan_as923.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void LMICas923_init(void);

// override default for LMICbandplan_isFSK()
#undef LMICbandplan_isFSK
#define LMICbandplan_isFSK() (/* TX datarate */LMIC.rxsyms == AS923_DR_FSK)
#define LMICbandplan_isFSK() (/* RX datarate */LMIC.dndr == AS923_DR_FSK)

// txDone handling for FSK.
void
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_bandplan_eu868.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ LMICeu868_isValidBeacon1(const uint8_t *d) {

// override default for LMICbandplan_isFSK()
#undef LMICbandplan_isFSK
#define LMICbandplan_isFSK() (/* TX datarate */LMIC.rxsyms == EU868_DR_FSK)
#define LMICbandplan_isFSK() (/* RX datarate */LMIC.dndr == EU868_DR_FSK)

// txDone handling for FSK.
void
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_bandplan_in866.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LMICin866_isValidBeacon1(const uint8_t *d) {

// override default for LMICbandplan_isFSK()
#undef LMICbandplan_isFSK
#define LMICbandplan_isFSK() (/* TX datarate */LMIC.rxsyms == IN866_DR_FSK)
#define LMICbandplan_isFSK() (/* TX datarate */LMIC.dndr == IN866_DR_FSK)

// txDone handling for FSK.
void
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_eu868.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ ostime_t LMICeu868_nextJoinState(void) {
}
#endif // !DISABLE_JOIN

// txDone handling for FSK.
// Class A txDone handling for FSK.
void
LMICeu868_txDoneFSK(ostime_t delay, osjobcb_t func) {
LMIC.rxtime = LMIC.txend + delay - PRERX_FSK*us2osticksRound(160);
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic_in866.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ ostime_t LMICin866_nextJoinState(void) {
}
#endif // !DISABLE_JOIN

// txDone handling for FSK.
// Class A txDone handling for FSK.
void
LMICin866_txDoneFSK(ostime_t delay, osjobcb_t func) {
LMIC.rxtime = LMIC.txend + delay - PRERX_FSK*us2osticksRound(160);
Expand Down

0 comments on commit 2849ceb

Please sign in to comment.