fix(techo-lite): remove duplicate EXTERNAL_FLASH_DEVICES definition

variant.h defines EXTERNAL_FLASH_DEVICES twice:
- First (correct):    ZD25WQ32CEIGR (32Mbit = 4MB, matches actual hardware)
- Second (incorrect): MX25R1635F    (16Mbit = 2MB, T-Echo non-Lite chip)

Due to C preprocessor behavior, the second definition silently overrides
the first, causing firmware to initialize the wrong flash chip. This can
result in LittleFS operating incorrectly on T-Echo Lite hardware.

Remove the erroneous second definition.

Also fix missing newline at end of file.
This commit is contained in:
me
2026-07-02 08:28:01 -07:00
parent 33fdf67e4d
commit 4866268cb9
+1 -4
View File
@@ -95,9 +95,6 @@
#define PIN_BUTTON2 _PINNUM(0, 18)
#define BUTTON_PIN2 PIN_BUTTON2
#define EXTERNAL_FLASH_DEVICES MX25R1635F
#define EXTERNAL_FLASH_USE_QSPI
////////////////////////////////////////////////////////////////////////////////
// Lora
@@ -156,4 +153,4 @@ extern const int SCK;
#define PIN_GPS_RX _PINNUM(1, 10) // GPS UART RX ← MCU TX
#define GPS_EN _PINNUM(1, 11) // GPS RT9080 power enable
#define PIN_GPS_STANDBY _PINNUM(1, 13) // GPS wake-up
#define PIN_GPS_PPS _PINNUM(1, 15) // GPS 1PPS
#define PIN_GPS_PPS _PINNUM(1, 15) // GPS 1PPS