Skip to content

Commit

Permalink
Merge pull request #86 from mcci-catena/issue85
Browse files Browse the repository at this point in the history
Fix #85 by pulling relevant changes into mainline.
  • Loading branch information
terrillmoore authored Jun 30, 2018
2 parents 9f07d48 + 1a4201b commit 107ae38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/ttn-abp/ttn-abp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ void setup() {
uint8_t nwkskey[sizeof(NWKSKEY)];
memcpy_P(appskey, APPSKEY, sizeof(APPSKEY));
memcpy_P(nwkskey, NWKSKEY, sizeof(NWKSKEY));
LMIC_setSession (0x1, DEVADDR, nwkskey, appskey);
LMIC_setSession (0x13, DEVADDR, nwkskey, appskey);
#else
// If not running an AVR with PROGMEM, just use the arrays directly
LMIC_setSession (0x1, DEVADDR, NWKSKEY, APPSKEY);
LMIC_setSession (0x13, DEVADDR, NWKSKEY, APPSKEY);
#endif

#if defined(CFG_eu868)
Expand Down
4 changes: 2 additions & 2 deletions examples/ttn-otaa/ttn-otaa.ino
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ void onEvent (ev_t ev) {
if (LMIC.txrxFlags & TXRX_ACK)
Serial.println(F("Received ack"));
if (LMIC.dataLen) {
Serial.println(F("Received "));
Serial.println(LMIC.dataLen);
Serial.print(F("Received "));
Serial.print(LMIC.dataLen);
Serial.println(F(" bytes of payload"));
}
// Schedule next transmission
Expand Down

0 comments on commit 107ae38

Please sign in to comment.