github: enable warnings

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2023-05-31 15:11:31 +02:00
parent 5f183bfc42
commit 5b0e19438a
10 changed files with 26 additions and 20 deletions

View file

@ -314,11 +314,12 @@ bool Network::connect() {
return this->connectWiFi();
}
int Network::getStrengthByMac(const char *macAddr) {
int strength = -100;
int n = WiFi.scanNetworks(true);
for(int i = 0; i < n; i++) {
if(WiFi.BSSIDstr(i).compareTo(macAddr) == 0) return WiFi.RSSI(i);
if (WiFi.BSSIDstr(i).compareTo(macAddr) == 0)
return WiFi.RSSI(i);
}
return -100;
}
uint32_t Network::getChipId() {
uint32_t chipId = 0;
@ -416,6 +417,7 @@ bool Network::openSoftAP() {
}
yield();
}
return true;
}
bool Network::connected() {
if(this->connType == conn_types::unset) return false;