Skip to content

Commit bc83c0a

Browse files
committed
esp_tinyuf2: pass back config string in callback
1 parent 67a4125 commit bc83c0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/usb/esp_tinyuf2/esp_tinyuf2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ typedef void (*update_complete_cb_t)(void);
3636
* @brief user callback called after nvs modified
3737
*
3838
*/
39-
typedef void (*nvs_modified_cb_t)(void);
39+
typedef void (*nvs_modified_cb_t)(const char*);
4040

4141
/**
4242
* @brief tinyuf2 configurations

components/usb/esp_tinyuf2/uf2/board_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void board_flash_nvs_update(const char *ini_str)
314314
}
315315
ini_parse_to_nvs(ini_str);
316316
if (_modified_cb) {
317-
_modified_cb();
317+
_modified_cb(ini_str);
318318
}
319319
}
320320

0 commit comments

Comments
 (0)