Added cast to properly deal with the AddLogMissed function prototype.

This commit is contained in:
Luis Teixeira 2020-03-10 22:53:49 +00:00
parent 4910e033b3
commit 725b9898c5
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
#define HDC1080_TEMP_OFFSET 40.0 #define HDC1080_TEMP_OFFSET 40.0
char* hdc_type_name = "HDC1080"; const char* hdc_type_name = "HDC1080";
uint16_t hdc_manufacturer_id = 0; uint16_t hdc_manufacturer_id = 0;
uint16_t hdc_device_id = 0; uint16_t hdc_device_id = 0;
@ -213,7 +213,7 @@ void HdcDetect(void) {
void HdcEverySecond(void) { void HdcEverySecond(void) {
if (uptime &1) { // Every 2 seconds if (uptime &1) { // Every 2 seconds
if (!HdcRead()) { if (!HdcRead()) {
AddLogMissed(hdc_type_name, hdc_valid); AddLogMissed((char*) hdc_type_name, hdc_valid);
} }
} }
} }