Closed phant0mias closed 7 months ago
I use the library with PlatformIO and detected some compiler warnings:
1) In the function int QtouchClass::available() the statement:
QtouchClass::available()
p_selfcap_measure_data->measurement_done_touch == 0u;
makes no sense
2) in the file Arduino_MKRIoTCarrier_Qtouch.h
Arduino_MKRIoTCarrier_Qtouch.h
static bool _available = false;
is not used
3) In AirQualityClass.cpp
AirQualityClass.cpp
the function:
AirQualityClass::readVOC()
AirQualityClass::readGasResistor()
AirQualityClass::readIAQ()
AirQualityClass::readIAQAccuracy()
AirQualityClass::readStaticIAQ()
AirQualityClass::readCO2()
do not return a value in case _revision is not equal BOARD_REVISION_2 (will be fixed by https://github.com/arduino-libraries/Arduino_MKRIoTCarrier/pull/76)
_revision
BOARD_REVISION_2
Good catch @phant0mias. A pull request is welcome :)
OK, I will do it
Hi, sorry for the long delay. I made a pull request for a part of the files
is merged
I use the library with PlatformIO and detected some compiler warnings:
1) In the function int
QtouchClass::available()
the statement:makes no sense
2) in the file
Arduino_MKRIoTCarrier_Qtouch.h
is not used
3) In
AirQualityClass.cpp
the function:
AirQualityClass::readVOC()
AirQualityClass::readGasResistor()
AirQualityClass::readIAQ()
AirQualityClass::readIAQAccuracy()
AirQualityClass::readStaticIAQ()
AirQualityClass::readCO2()
do not return a value in case
_revision
is not equalBOARD_REVISION_2
(will be fixed by https://github.com/arduino-libraries/Arduino_MKRIoTCarrier/pull/76)