mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2026-10-31 13:52:15 +01:00
fix: download the per-chip LittleFS image in online updates
Releases publish SomfyController.littlefs.<chip>.bin, but the updater asked for SomfyController.littlefs.bin. The download 404'd and the device rebooted into the new firmware with the old web UI. Also: hasFS now matches per-chip images, C6 picks its own firmware file, and recoverFilesystem() points at cjkas instead of rstrouse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a1622e652d
commit
ab7eae3d94
6 changed files with 59 additions and 20 deletions
|
|
@ -150,6 +150,14 @@ bool worthRoaming(bool connected, int currentRssi, int apRssi, int minGain) {
|
|||
bool otaProven(bool networkUp, unsigned long uptimeMs, unsigned long minUptimeMs) {
|
||||
return networkUp && uptimeMs >= minUptimeMs;
|
||||
}
|
||||
bool releaseAssetName(char *buf, size_t size, const char *kind, const char *chip) {
|
||||
int n = snprintf(buf, size, "SomfyController.%s.%s.bin", kind, chip);
|
||||
return n >= 0 && (size_t)n < size;
|
||||
}
|
||||
bool isFsAsset(const char *name) {
|
||||
size_t len = strlen(name);
|
||||
return strstr(name, ".littlefs.") && len >= 4 && strcmp(name + len - 4, ".bin") == 0;
|
||||
}
|
||||
const char *wifiAuthModeName(uint8_t authMode) {
|
||||
switch(authMode) {
|
||||
case 0: return "OPEN";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue