@@ -33,7 +33,10 @@ void setup() {
33
33
if (err) {
34
34
// Reformat if we can't mount the filesystem
35
35
// this should only happen on the first boot
36
- Serial.println (" No filesystem found, formatting..." );
36
+ Serial.println (" No filesystem containing the WiFi firmware was found." );
37
+ Serial.println (" Usually that means that the WiFi firmware has not been installed yet"
38
+ " or was overwritten with another firmware.\n " );
39
+ Serial.println (" Formatting the filsystem to install the firmware and certificates...\n " );
37
40
err = wifi_data_fs.reformat (&wifi_data);
38
41
}
39
42
@@ -43,10 +46,11 @@ void setup() {
43
46
if ((dir = opendir (" /wlan" )) != NULL ) {
44
47
/* print all the files and directories within directory */
45
48
while ((ent = readdir (dir)) != NULL ) {
46
- Serial.println (ent->d_name );
49
+ Serial.println (" Searching for WiFi firmware file " + String ( ent->d_name ) + " ... " );
47
50
String fullname = " /wlan/" + String (ent->d_name );
48
51
if (fullname == " /wlan/4343WA1.BIN" ) {
49
- Serial.println (" Firmware found! Force update? [Y/n]" );
52
+ Serial.println (" A WiFi firmware is already installed. "
53
+ " Do you want to install the firmware anyway? Y/[n]" );
50
54
while (1 ) {
51
55
if (Serial.available ()) {
52
56
int c = Serial.read ();
@@ -86,7 +90,7 @@ void setup() {
86
90
}
87
91
fclose (fp);
88
92
89
- Serial.println (" Firmware and certificates updated!" );
93
+ Serial.println (" \n Firmware and certificates updated!" );
90
94
}
91
95
92
96
void loop () {
0 commit comments