buttons extension + config memory leak & external allocation

This commit is contained in:
philippe44
2020-01-14 23:29:19 -08:00
parent ccf214fbe2
commit f8b5d856a3
6 changed files with 68 additions and 14 deletions

View File

@@ -40,6 +40,7 @@ void services_init(void) {
if ((p = strcasestr(nvs_item, "sda")) != NULL) sda = atoi(strchr(p, '=') + 1);
if ((p = strcasestr(nvs_item, "speed")) != NULL) i2c_speed = atoi(strchr(p, '=') + 1);
if ((p = strcasestr(nvs_item, "port")) != NULL) i2c_system_port = atoi(strchr(p, '=') + 1);
free(nvs_item);
}
#ifdef CONFIG_SQUEEZEAMP