Merge pull request #58 from Noltari/lolin-c3-mini

Add LOLIN-C3-mini to Github CI
This commit is contained in:
rstrouse 2023-05-31 20:44:10 -07:00 committed by GitHub
commit 5f183bfc42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -61,13 +61,17 @@ jobs:
strategy:
fail-fast: false
matrix:
board: [esp32, lolin_s2_mini]
include:
- board: esp32
chip: ESP32
flash_size: 4MB
fqbn: esp32:esp32:esp32
name: ESP32
- board: lolin_c3_mini
chip: ESP32-C3
flash_size: 4MB
fqbn: esp32:esp32:lolin_c3_mini
name: LOLIN-C3-mini
- board: lolin_s2_mini
chip: ESP32-S2
flash_size: 4MB

View file

@ -329,7 +329,7 @@ uint32_t Network::getChipId() {
return chipId;
}
int Network::getStrengthBySSID(const char *ssid) {
int strength = -100;
int32_t strength = -100;
int n = WiFi.scanNetworks(false, true);
for(int i = 0; i < n; i++) {
if(WiFi.SSID(i).compareTo(ssid) == 0) strength = max(WiFi.RSSI(i), strength);