File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
libraries/STM32H747_System/examples/QSPIFormat Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -22,25 +22,27 @@ FileSystem * user_data_fs;
22
22
23
23
bool waitResponse () {
24
24
bool confirmation = false ;
25
+ bool proceed = false ;
25
26
while (confirmation == false ) {
26
27
if (Serial.available ()) {
27
28
char choice = Serial.read ();
28
29
switch (choice) {
29
30
case ' y' :
30
31
case ' Y' :
31
32
confirmation = true ;
32
- return true ;
33
+ proceed = true ;
33
34
break ;
34
35
case ' n' :
35
36
case ' N' :
36
37
confirmation = true ;
37
- return false ;
38
+ proceed = false ;
38
39
break ;
39
40
default :
40
41
continue ;
41
42
}
42
43
}
43
44
}
45
+ return proceed;
44
46
}
45
47
46
48
void printProgress (uint32_t offset, uint32_t size, uint32_t threshold, bool reset) {
@@ -151,11 +153,10 @@ void setup() {
151
153
152
154
void flashWiFiFirmwareAndCertificates () {
153
155
extern const unsigned char wifi_firmware_image_data[];
154
- extern const resource_hnd_t wifi_firmware_image;
155
156
FILE* fp = fopen (" /wlan/4343WA1.BIN" , " wb" );
156
- const int file_size = 421098 ;
157
- int chunck_size = 1024 ;
158
- int byte_count = 0 ;
157
+ const uint32_t file_size = 421098 ;
158
+ uint32_t chunck_size = 1024 ;
159
+ uint32_t byte_count = 0 ;
159
160
160
161
Serial.println (" Flashing WiFi firmware" );
161
162
printProgress (byte_count, file_size, 10 , true );
You can’t perform that action at this time.
0 commit comments