Skip to content

Commit 9e14378

Browse files
committed
Correct keyname for alternative_networks
1 parent f83db5e commit 9e14378

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/provisioning/littlefs/WipperSnapper_LittleFS.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ void WipperSnapper_LittleFS::parseSecrets() {
6767
fsHalt(String("ERROR: deserializeJson() failed with code ") +
6868
error.c_str());
6969
}
70-
7170
if (doc.containsKey("network_type_wifi")) {
7271
// set default network config
7372
convertFromJson(doc["network_type_wifi"], WS._config.network);
7473

75-
if (!doc["network_type_wifi"].containsKey("alternate_networks")) {
74+
if (!doc["network_type_wifi"].containsKey("alternative_networks")) {
7675
// do nothing extra, we already have the only network
7776
WS_DEBUG_PRINTLN("Found single wifi network in secrets.json");
7877

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void Wippersnapper_FS::parseSecrets() {
355355
// set default network config
356356
convertFromJson(doc["network_type_wifi"], WS._config.network);
357357

358-
if (!doc["network_type_wifi"].containsKey("alternate_networks")) {
358+
if (!doc["network_type_wifi"].containsKey("alternative_networks")) {
359359
// do nothing extra, we already have the only network
360360
WS_DEBUG_PRINTLN("Found single wifi network in secrets.json");
361361

0 commit comments

Comments
 (0)