File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -142,25 +142,6 @@ Wippersnapper_FS::Wippersnapper_FS() {
142
142
setStatusLEDColor (RED);
143
143
HaltFilesystem (" FATAL ERROR: Could not write filesystem contents!" );
144
144
}
145
-
146
- // If we wrote a fresh secrets.json file, halt until user edits the file and
147
- // RESETs the device Signal to user that action must be taken (edit
148
- // secrets.json)
149
- if (_is_secrets_file_empty) {
150
- WriteFileBoot (
151
- " Please edit the secrets.json file. Then, reset your board.\n " );
152
- #ifdef USE_DISPLAY
153
- WsV2._ui_helper ->show_scr_error (
154
- " INVALID SETTINGS FILE" ,
155
- " The settings.json file on the WIPPER drive contains default values. "
156
- " Please edit it to reflect your Adafruit IO and network credentials. "
157
- " When you're done, press RESET on the board." );
158
- #endif
159
- HaltFilesystem (
160
- " The settings.json file on the WIPPER drive contains default "
161
- " values\n . Using a text editor, edit it to reflect your Adafruit IO "
162
- " and WiFi credentials. Then, reset the board." );
163
- }
164
145
}
165
146
166
147
/* ***********************************************************/
@@ -256,9 +237,7 @@ bool Wippersnapper_FS::MakeDefaultFilesystem() {
256
237
257
238
// Check if secrets.json file already exists
258
239
if (!GetFileSecrets ()) {
259
- // Create new secrets.json file and halt
260
240
CreateFileSecrets ();
261
- _is_secrets_file_empty = true ;
262
241
}
263
242
264
243
CreateFileConfig ();
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ class Wippersnapper_FS {
71
71
// getter for _doc_cfg
72
72
JsonDocument &GetDocCfg () { return _doc_cfg; }
73
73
private:
74
- bool _is_secrets_file_empty = false ;
75
74
JsonDocument _doc_cfg;
76
75
};
77
76
extern Wippersnapper_V2 WsV2;
You can’t perform that action at this time.
0 commit comments