Move LMIC_startJoining() outside "#ifdef SINGLE_CHANNEL_GATEWAY" (#6), update version to 1.1.1
This commit is contained in:
@ -33,7 +33,7 @@ void ttn_register(void (*callback)(uint8_t message));
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#define APP_NAME "TTN MAP-TRACK"
|
||||
#define APP_VERSION "1.1.0"
|
||||
#define APP_VERSION "1.1.1"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Configuration
|
||||
@ -41,7 +41,7 @@ void ttn_register(void (*callback)(uint8_t message));
|
||||
|
||||
// Select which T-Beam board is being used. Only uncomment one.
|
||||
#define T_BEAM_V07 // AKA Rev0 (first board released)
|
||||
// #define T_BEAM_V10 // AKA Rev1 (second board released)
|
||||
//#define T_BEAM_V10 // AKA Rev1 (second board released)
|
||||
|
||||
// Select the payload format. Change on TTN as well. Only uncomment one.
|
||||
#define PAYLOAD_USE_FULL
|
||||
|
@ -115,7 +115,7 @@ void screen_loop() {
|
||||
if (axp.isVbusRemoveIRQ()) {
|
||||
baChStatus = "No Charging";
|
||||
}
|
||||
Serial.println(baChStatus); //Prints charging status to screen
|
||||
Serial.println(baChStatus); //Prints charging status to screen
|
||||
digitalWrite(2, !digitalRead(2));
|
||||
axp.clearIRQ();
|
||||
}
|
||||
|
@ -211,11 +211,11 @@ void ttn_join() {
|
||||
|
||||
#elif defined(USE_OTAA)
|
||||
|
||||
#ifdef SINGLE_CHANNEL_GATEWAY
|
||||
// Make LMiC initialize the default channels, choose a channel, and
|
||||
// schedule the OTAA join
|
||||
LMIC_startJoining();
|
||||
|
||||
#ifdef SINGLE_CHANNEL_GATEWAY
|
||||
// LMiC will already have decided to send on one of the 3 default
|
||||
// channels; ensure it uses the one we want
|
||||
LMIC.txChnl = SINGLE_CHANNEL_GATEWAY;
|
||||
|
Reference in New Issue
Block a user