mirror of https://github.com/arendst/Tasmota.git
Added cast to properly deal with the AddLogMissed function prototype.
This commit is contained in:
parent
4910e033b3
commit
725b9898c5
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue