Skip to content

Commit 21b0c08

Browse files
authored
Merge pull request #496 from LeeLeahy2/move-settings
Move settings into LoRaSerial with other settings
2 parents dca2ca3 + 69de241 commit 21b0c08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firmware/LoRaSerial/LoRaSerial.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ unsigned long retransmitTimeout = 0; //Throttle back re-transmits
509509
//Global variables
510510
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
511511
const Settings defaultSettings;
512+
Settings settings; //Active settings used by the radio
512513
Settings tempSettings; //Create a duplicate of settings during training so that we can resort as needed
513514

514515
char platformPrefix[25]; //Used for printing platform specific device name, ie "SAMD21 1W 915MHz"

Firmware/LoRaSerial/settings.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef enum
1919
RADIO_DISCOVER_SCANNING,
2020
RADIO_DISCOVER_WAIT_TX_FIND_PARTNER_DONE,
2121
RADIO_DISCOVER_STANDBY,
22-
22+
2323
//Multi-Point: Datagrams
2424
RADIO_MP_STANDBY,
2525
RADIO_MP_WAIT_TX_DONE,
@@ -518,7 +518,6 @@ typedef struct struct_settings {
518518
//-- Add commands to set the parameters
519519
//-- Add parameters to routine updateRadioParameters
520520
} Settings;
521-
Settings settings;
522521

523522
//Monitor which devices on the device are on or offline.
524523
struct struct_online {

0 commit comments

Comments
 (0)