@@ -33,7 +33,10 @@ void setup() {
3333 if (err) {
3434 // Reformat if we can't mount the filesystem
3535 // 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 " );
3740 err = wifi_data_fs.reformat (&wifi_data);
3841 }
3942
@@ -43,10 +46,11 @@ void setup() {
4346 if ((dir = opendir (" /wlan" )) != NULL ) {
4447 /* print all the files and directories within directory */
4548 while ((ent = readdir (dir)) != NULL ) {
46- Serial.println (ent->d_name );
49+ Serial.println (" Searching for WiFi firmware file " + String ( ent->d_name ) + " ... " );
4750 String fullname = " /wlan/" + String (ent->d_name );
4851 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]" );
5054 while (1 ) {
5155 if (Serial.available ()) {
5256 int c = Serial.read ();
@@ -86,7 +90,7 @@ void setup() {
8690 }
8791 fclose (fp);
8892
89- Serial.println (" Firmware and certificates updated!" );
93+ Serial.println (" \n Firmware and certificates updated!" );
9094}
9195
9296void loop () {
0 commit comments