File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
libraries/Storage/examples/QSPIFormat Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -174,18 +174,18 @@ void flashCertificates() {
174
174
FILE* fp = fopen (" /wlan/cacert.pem" , " wb" );
175
175
176
176
Serial.println (" Flashing certificates" );
177
- uint32_t chunck_size = 128 ;
177
+ uint32_t chunk_size = 128 ;
178
178
uint32_t byte_count = 0 ;
179
179
printProgress (byte_count, cacert_pem_len, 10 , true );
180
180
while (byte_count < cacert_pem_len) {
181
- if (byte_count + chunck_size > cacert_pem_len)
182
- chunck_size = cacert_pem_len - byte_count;
183
- int ret = fwrite (&cacert_pem[byte_count], chunck_size , 1 ,fp);
181
+ if (byte_count + chunk_size > cacert_pem_len)
182
+ chunk_size = cacert_pem_len - byte_count;
183
+ int ret = fwrite (&cacert_pem[byte_count], chunk_size , 1 ,fp);
184
184
if (ret != 1 ) {
185
185
Serial.println (" Error writing certificates" );
186
186
break ;
187
187
}
188
- byte_count += chunck_size ;
188
+ byte_count += chunk_size ;
189
189
printProgress (byte_count, cacert_pem_len, 10 , false );
190
190
}
191
191
fclose (fp);
You can’t perform that action at this time.
0 commit comments