clear a few warnings
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef H1602_WSEN_GLOBAL_H
|
||||
#define H1602_WSEN_GLOBAL_H
|
||||
|
||||
//#define DEBUG_MSG
|
||||
#define DEBUG_MSG
|
||||
|
||||
#define INPUT_CHANNELS 5
|
||||
|
||||
|
||||
@@ -426,7 +426,7 @@ void WifiScanGet(AsyncWebServerRequest *request)
|
||||
//Scan not triggered
|
||||
WiFi.scanNetworks(true, showHidden);
|
||||
}
|
||||
else if (n)
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < n; ++i)
|
||||
{
|
||||
|
||||
@@ -148,7 +148,7 @@ void checkEeprom()
|
||||
|
||||
yield();
|
||||
|
||||
if (writeCheck == true)
|
||||
if (writeCheck)
|
||||
{
|
||||
EEPROM.put(EEPROMSTRUCT_OFFSET, eepromStruct);
|
||||
EEPROM.commit();
|
||||
|
||||
@@ -183,16 +183,16 @@ void setup()
|
||||
{
|
||||
pinMode(inputTable[i], INPUT_PULLUP);
|
||||
inputValue[i] = !digitalRead(inputTable[i]);
|
||||
if (getEeprom()->apMode == false)
|
||||
if (!getEeprom()->apMode)
|
||||
{
|
||||
if (getEeprom()->channel[i].enable == true)
|
||||
if (getEeprom()->channel[i].enable)
|
||||
{
|
||||
attachInputInterrupt(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (getEeprom()->apMode == true)
|
||||
if (getEeprom()->apMode)
|
||||
{
|
||||
accessPointMode();
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ void prtgServerUpdate()
|
||||
|
||||
for (int i = 1; i < INPUT_CHANNELS; i++)
|
||||
{
|
||||
if (getEepromChannel(i)->enable == true)
|
||||
if (getEepromChannel(i)->enable)
|
||||
{
|
||||
request += F("<result><channel>");
|
||||
request += getEepromChannel(i)->channel;
|
||||
@@ -45,7 +45,7 @@ void prtgServerUpdate()
|
||||
Serial.println(url);
|
||||
#endif
|
||||
|
||||
if (http.begin(httpClient, url) == false)
|
||||
if (!http.begin(httpClient, url))
|
||||
{
|
||||
#ifdef DEBUG_MSG
|
||||
Serial.println(F("http.begin failed"));
|
||||
|
||||
Reference in New Issue
Block a user