Skip to content

Commit 26d4b1e

Browse files
authored
Merge pull request #14 from jonathandreyer/fix-rf-init
Fix missing frequency initialization
2 parents 7db54d3 + c559d58 commit 26d4b1e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

firmware/emonth2.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
-------------------------------------------------------------------------------------------------------------
3232
*/
3333

34-
const char *firmware_version = {"4.1.0\n\r"};
34+
const char *firmware_version = {"4.1.1\n\r"};
3535
/*
3636
3737
Change log:
38+
V4.1.1 - (19/02/23) Fix missing frequency initialization
3839
V4.1.0 - (17/02/23) LowPowerLabs radio format option
3940
V4.0.0 - (10/07/21) Replace JeeLib with OEM RFM69nTxLib using RFM69 "Native" packet format, add emonEProm library support
4041
@@ -119,7 +120,7 @@ const unsigned long PULSE_MAX_NUMBER = 100; // Data s
119120
//---------------------------- emonTH Settings - Stored in EEPROM and shared with config.ino ------------------------------------------------
120121
struct
121122
{
122-
byte RF_freq = RF69_433MHZ; // Frequency of radio module can be RFM_433MHZ, RFM_868MHZ or RFM_915MHZ.
123+
byte RF_freq = RF69_433MHZ; // Frequency of radio module can be RF69_433MHZ, RF69_868MHZ or RF69_915MHZ.
123124
byte networkGroup = 210; // Wireless network group, must be the same as emonBase / emonPi and emonGLCD. OEM default is 210
124125
byte nodeID = 23; // Node ID for this sensor.
125126
byte rf_on = 1; // RF/Serial output. Bit 0 set: RF on, bit 1 set: serial on.
@@ -242,7 +243,7 @@ void setup()
242243
#ifdef RFM69CW
243244
Serial.println("Init RFM...");
244245
#if RadioFormat == RFM69_LOW_POWER_LABS
245-
radio.initialize(RF69_433MHZ,EEProm.nodeID,EEProm.networkGroup);
246+
radio.initialize(EEProm.RF_freq,EEProm.nodeID,EEProm.networkGroup);
246247
radio.encrypt("89txbe4p8aik5kt3"); // initialize RFM
247248
radio.setPowerLevel(EEProm.rfPower);
248249
#else

0 commit comments

Comments
 (0)