From 01550a9634203e8bddb47f3b0dd07de13ccdfd75 Mon Sep 17 00:00:00 2001
From: Francois <thiebolt@irit.fr>
Date: Wed, 6 Mar 2024 00:12:43 +0100
Subject: [PATCH] update

---
 arduinoIDE_esp32_boards/boards.local.txt | 10 +++++++++-
 neosensor/neosensor.ino                  |  4 ++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/arduinoIDE_esp32_boards/boards.local.txt b/arduinoIDE_esp32_boards/boards.local.txt
index 8b9fa28b..d22f2c21 100644
--- a/arduinoIDE_esp32_boards/boards.local.txt
+++ b/arduinoIDE_esp32_boards/boards.local.txt
@@ -36,7 +36,9 @@ neOSensor.build.flash_mode=dio
 neOSensor.build.flash_size=4MB
 neOSensor.build.flash_freq=80m
 neOSensor.build.boot=dio
-neOSensor.build.partitions=default
+# [feb.24] disabling default to enable choices
+#neOSensor.build.partitions=default
+
 # onboard LED2 (except on ESP32 38pins we don't use)
 # DISABLE_SSL: flag to disable SSL comms.
 # DISABLE_ADC_CAL: flag to disable esp32 ADC advanced calibration
@@ -56,6 +58,12 @@ neOSensor.menu.UploadSpeed.115200.upload.speed=115200
 # FLASH partitioning
 neOSensor.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
 neOSensor.menu.PartitionScheme.default.build.partitions=default
+# [feb.24] additional FLASH partitioning options
+neOSensor.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
+neOSensor.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
+neOSensor.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
+neOSensor.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
+neOSensor.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
 
 # Core debug
 neOSensor.menu.DebugLevel.none=None
diff --git a/neosensor/neosensor.ino b/neosensor/neosensor.ino
index f7801a4c..93ec61f4 100644
--- a/neosensor/neosensor.ino
+++ b/neosensor/neosensor.ino
@@ -151,8 +151,8 @@
  *  This stems from tha fact that UT3 network's DNS does NOT resolve IRIT IPs
  *  and vice-versa ... hence leading to numerous DNS failures !
  */
-#define NTP_DEFAULT_SERVER1       "time.nist.gov"     // DNS location aware
-#define NTP_DEFAULT_SERVER2       "pool.ntp.org"      // DNS location aware
+#define NTP_DEFAULT_SERVER1       "pool.ntp.org"      // DNS location aware
+#define NTP_DEFAULT_SERVER2       "time.nist.gov"     // DNS location aware
 //#define NTP_DEFAULT_SERVER2       "141.115.4.42"      // [feb.24] to avoid 'ntp.irit.fr' DNS resolution that fails at UT3
 //#define NTP_DEFAULT_SERVER2       "ntp.irit.fr"       // UT3-IRIT specific
 #define NTP_DEFAULT_SERVER3       "europe.pool.ntp.org" // DNS location aware
-- 
GitLab