Skip to content

Commit 42eba31

Browse files
committed
Fix mutex bug in app_config_save
1 parent 9168ad0 commit 42eba31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/app_config/app_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ esp_err_t app_config_load() {
101101
}
102102

103103
esp_err_t app_config_save() {
104-
xSemaphoreGive(_self.config_mutex);
104+
xSemaphoreTake(_self.config_mutex, portMAX_DELAY);
105105
nvs_handle_t nvs_ayab;
106106
esp_err_t err = nvs_open(_self.namespace, NVS_READWRITE, &nvs_ayab);
107107
if (err == ESP_OK) {

0 commit comments

Comments
 (0)