embeddedadventures / MOD-1016

Source and examples for talking to the MOD-1016 AS3935 lightning sensor module
http://www.embeddedadventures.com/as3935_lightning_sensor_module_mod-1016.html
13 stars 6 forks source link

Compiling error #4

Closed szerwi closed 7 years ago

szerwi commented 7 years ago

Hi,

I'm trying to upload a code to ESP32 (I've tried Arduino Uno also) but while compiling I have an error:

C:\Program Files (x86)\Arduino\libraries\MOD-1016-master\AS3935.cpp: In member function 'void AS3935Class::init(uint8_t)':

C:\Program Files (x86)\Arduino\libraries\MOD-1016-master\AS3935.cpp:116:10: error: 'IRQ_pin' was not declared in this scope

pinMode(IRQ_pin, INPUT);

      ^

exit status 1

I've tried to replace IRQ_PIN with IRQ_pin in code, but the error is the same. I'm using Arduino IDE 1.8.1

dr4nc3s commented 7 years ago

Thank you very much for pointing that out. It was an overlooked mistake that I didn't verify. The error has been fixed and it should be fine now. Parameter "irqPin" and used name "IRQ_pin" were inconsistent.