openenergymonitor / EmonTxV3CM

EmonTxV3 Continuous Monitoring Firmware (Default shipped EmonTxV3 firmware)
13 stars 13 forks source link

Variable conflict in emonLibCM #33

Open baylf2000 opened 2 years ago

baylf2000 commented 2 years ago

The sketch will no longer build in Arduino due to a variable conflict with the emonLibCM library.

The variable "assumedVrms" is used in both the sketch and the library causing compilation to fail.

WallBPG commented 1 year ago

I solved it by changing each occurrence of the variable name 'assumedVrms' to something else like 'assumedVrmsINO' in both the EmonTxV3CM.ino and EmonTxV3CM_config.ino. The error seems to be coming from the same variable name being used in the emonLibCM library.