I need to make a minor change to firmware that I have on an old emonTX. I note the original file date was 2012.
First thing I did was to try and compile the original file before I make changes.
This produce some errors.
Back in 2012 I probably used an older jeelib library than that currently installed which is from [email protected]:openenergymonitor/jeelib.git.
My guess is that changes to Arduino are causing the problem and not the library but I do not have the knowledge to work out the fix.
Arduino: 1.8.7 (Windows 10), Board: "Arduino/Genuino Uno" In file included from D:\MicroProcessors\ArduinoCode\libraries\jeelibstable/JeeLib.h:18:0, from D:\MicroProcessors\ArduinoCode\MyEmontTX\MyEmontTX.ino:36: D:\MicroProcessors\ArduinoCode\libraries\jeelibstable/RF12.h:56:25: error: expected ',' or '...' before numeric constant #define RF12_433MHZ 1 ///< RFM12B 433 MHz frequency band. ^ D:\MicroProcessors\ArduinoCode\MyEmontTX\MyEmontTX.ino:29:14: note: in expansion of macro 'RF12_433MHZ' #define freq RF12_433MHZ // frequency - match to same frequency as RFM12B module (change to 868Mhz or 915Mhz if appropriate) ^ D:\MicroProcessors\ArduinoCode\libraries\jeelibstable/RF69.h:10:33: note: in expansion of macro 'freq' void setFrequency (uint32_t freq); ^
Any help would be much appreciated.