mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
nvs_console: Fix type comparison
Closes https://github.com/espressif/esp-idf/issues/3320
This commit is contained in:
parent
c5f58d11e8
commit
893c1d82f7
@ -78,7 +78,7 @@ static nvs_type_t str_to_type(const char *type)
|
||||
{
|
||||
for (int i = 0; i < TYPE_STR_PAIR_SIZE; i++) {
|
||||
const type_str_pair_t *p = &type_str_pair[i];
|
||||
if (strncmp(type, p->str, strlen(p->str)) == 0) {
|
||||
if (strcmp(type, p->str) == 0) {
|
||||
return p->type;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user