From 1d387ab82d1488b789be37dd6886dbc7ab963057 Mon Sep 17 00:00:00 2001 From: jameszah <36938190+jameszah@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:36:08 -0700 Subject: [PATCH] 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 --- vA1/TimeLapseAviA1x.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vA1/TimeLapseAviA1x.ino b/vA1/TimeLapseAviA1x.ino index 70f902c..f21f723 100644 --- a/vA1/TimeLapseAviA1x.ino +++ b/vA1/TimeLapseAviA1x.ino @@ -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);