When using PlatformIO to build, it produces a warning for the constructor because it is trying to implicitly convert an int (the address parameter) to enum SF_AS3935_I2C_ADDRESS (the _address member variable). To fix the warning, I chose to change the type of the constructor's parameter to be enum SF_AS3935_I2C_ADDRESS. I think that makes it more explicit which addresses are allowed. Alternatively, the _address member could have been changed to type int.
When using PlatformIO to build, it produces a warning for the constructor because it is trying to implicitly convert an
int
(theaddress
parameter) toenum SF_AS3935_I2C_ADDRESS
(the_address
member variable). To fix the warning, I chose to change the type of the constructor's parameter to beenum SF_AS3935_I2C_ADDRESS
. I think that makes it more explicit which addresses are allowed. Alternatively, the_address
member could have been changed to typeint
.