levkovigor / LTR390

Arduino library for the LTR390 UV sensors.
MIT License
8 stars 3 forks source link

About 'unused-variable' in LTR390.cpp #8

Closed tfuruha closed 1 year ago

tfuruha commented 1 year ago

Hi. If there are no other problems, could you please remove the return value byte ack of writeRegister() on line 53 of LTR390.cpp? I presume that this is due to the Arduino IDE ESP32 Core, but since "-Werror=unused-variable" is enabled, a compiler error occurs as below.

c:\Users\_____\Documents\Arduino\libraries\LTR390\src\LTR390.cpp:53:8: error: unused variable 'ack' [-Werror=unused-variable]
   byte ack = writeRegister(LTR390_MAIN_CTRL, _r);
        ^~~
cc1plus.exe: some warnings being treated as errors
levkovigor commented 1 year ago

@tfuruha fixed in release 1.0.9

tfuruha commented 1 year ago

Thanks.