Movatterモバイル変換


[0]ホーム

URL:


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

Commit45c9eae

Browse files
committed
QSPIFormat: fix warnings
1 parentedeaf3d commit45c9eae

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
boolwaitResponse() {
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-
returntrue;
33+
proceed =true;
3334
break;
3435
case'n':
3536
case'N':
3637
confirmation =true;
37-
returnfalse;
38+
proceed =false;
3839
break;
3940
default:
4041
continue;
4142
}
4243
}
4344
}
45+
return proceed;
4446
}
4547

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

152154
voidflashWiFiFirmwareAndCertificates() {
153155
externconstunsignedchar wifi_firmware_image_data[];
154-
externconstresource_hnd_t wifi_firmware_image;
155156
FILE* fp =fopen("/wlan/4343WA1.BIN","wb");
156-
constint file_size =421098;
157-
int chunck_size =1024;
158-
int byte_count =0;
157+
constuint32_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)

[8]ページ先頭

©2009-2025 Movatter.jp