Skip to content

Commit 47743ca

Browse files
committed
Fix boot_path Path loading
the boot path is a charlist eg erlang "". But storing it in nvs with nvs_put_binary, means it's stored as a binary. minimal fix. Signed-off-by: Peter M <petermm@gmail.com>
1 parent a7dbecd commit 47743ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ certain VM instructions are used.
3737
- Fix bug in opcode implementation (`select_val`): when selecting a value among many others a
3838
shallow comparison was performed, so it was working just for plain values such as atoms and small
3939
integers
40+
- Fixed support for setting esp32 boot_path in NVS.
4041

4142
## [0.6.5] - 2024-10-15
4243

libs/esp32boot/esp32init.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ get_boot_path() ->
8585
undefined ->
8686
"/dev/partition/by-name/main.avm";
8787
Path ->
88-
Path
88+
binary_to_list(Path)
8989
end.
9090

9191
get_start_module() ->

0 commit comments

Comments
 (0)