Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45c9eae

Browse files
committed
QSPIFormat: fix warnings
1 parent edeaf3d commit 45c9eae

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,27 @@ FileSystem * user_data_fs;
2222

2323
bool waitResponse() {
2424
bool confirmation = false;
25+
bool proceed = false;
2526
while (confirmation == false) {
2627
if (Serial.available()) {
2728
char choice = Serial.read();
2829
switch (choice) {
2930
case 'y':
3031
case 'Y':
3132
confirmation = true;
32-
return true;
33+
proceed = true;
3334
break;
3435
case 'n':
3536
case 'N':
3637
confirmation = true;
37-
return false;
38+
proceed = false;
3839
break;
3940
default:
4041
continue;
4142
}
4243
}
4344
}
45+
return proceed;
4446
}
4547

4648
void printProgress(uint32_t offset, uint32_t size, uint32_t threshold, bool reset) {
@@ -151,11 +153,10 @@ void setup() {
151153

152154
void flashWiFiFirmwareAndCertificates() {
153155
extern const unsigned char wifi_firmware_image_data[];
154-
extern const resource_hnd_t wifi_firmware_image;
155156
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;
159160

160161
Serial.println("Flashing WiFi firmware");
161162
printProgress(byte_count, file_size, 10, true);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /