kopia lustrzana https://github.com/espressif/esp-idf
components/bt: Fix compile error with new toolchain
Closes https://github.com/espressif/esp-idf/issues/3331 Closes https://github.com/espressif/esp-idf/issues/3734pull/3783/head
rodzic
74140b0cfb
commit
f8c107fbe3
|
@ -440,8 +440,9 @@ bool config_save(const config_t *config, const char *filename)
|
|||
goto error;
|
||||
}
|
||||
}else {
|
||||
uint count = (w_cnt_total / CONFIG_FILE_MAX_SIZE);
|
||||
for (int i = 0; i <= count; i++)
|
||||
int count = (w_cnt_total / CONFIG_FILE_MAX_SIZE);
|
||||
assert(count <= 0xFF);
|
||||
for (uint8_t i = 0; i <= count; i++)
|
||||
{
|
||||
snprintf(keyname, keyname_bufsz, "%s%d", CONFIG_KEY, i);
|
||||
if (i == count) {
|
||||
|
|
Ładowanie…
Reference in New Issue