lrswss / tasmota-am2320-i2c-driver

Driver for Sonoff-Tasmota to support the temperature/humidity sensor AM2320 (I2C)
GNU General Public License v3.0
6 stars 4 forks source link

errors while uploading #1

Open andersonthomas opened 5 years ago

andersonthomas commented 5 years ago

hi im quite newbie with this, and i tried to upload code with am2320 driver but it give's me these errors:

C:/Users/John/Downloads/Sonoff-Tasmota-development/sonoff/xsns_92_am2320.ino: In function 'void Am2320EverySecond()': C:/Users/John/Downloads/Sonoff-Tasmota-development/sonoff/xsns_92_am2320.ino:146:42: warning: deprecated conversion from string constant to 'char*' [-Wwrite- strings]

AddLogMissed("AM2320", AM2320.valid); ^ C:/Users/John/Downloads/Sonoff-Tasmota-development/sonoff/xsns_92_am2320.ino: In function 'void Am2320Show(boolean)': C:/Users/John/Downloads/Sonoff-Tasmota-development/sonoff/xsns_92_am2320.ino:171:37: error: 'i' was not declared in this scope if ((0 == tele_period) && (0 == i)) { ^

can u help me with this, thanks