Jan 24, 2022 - version 1.6 - dns name, 80% sd

- change naming convention - all ino's will be called A1 and code may change with that name
- keep sd card 20% empty rather than 10%
- change order of dns name to more esp32-arduino 2.02 changes
master
jameszah 2022-01-24 13:36:08 -07:00 zatwierdzone przez GitHub
rodzic 5670cf14d1
commit 1d387ab82d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -921,7 +921,7 @@ void delete_old_stuff() {
Serial.printf("Used space: %lluMB\n", SD_MMC.usedBytes() / (1024 * 1024));
float full = 1.0 * SD_MMC.usedBytes() / SD_MMC.totalBytes();;
if (full < 0.9) {
if (full < 0.8) {
Serial.printf("Nothing deleted, %.1f%% disk full\n", 100.0 * full);
} else {
Serial.printf("Disk is %.1f%% full ... deleting oldest day\n", 100.0 * full);
@ -1346,8 +1346,8 @@ bool init_wifi()
} else {
WiFi.disconnect(true, true);
WiFi.mode(WIFI_STA);
WiFi.setHostname(devname);
WiFi.mode(WIFI_STA);
//WiFi.printDiag(Serial);
WiFi.begin(ssid, password);