Skip to content

Commit d6f17ad

Browse files
committed
Merge pull request #1502 from petermm/fix_boot_path_loading
Fix boot_path path loading the boot path is a charlist eg erlang "". https://github.com/atomvm/AtomVM/blob/ed48c7c99150e1d708183be6537e1c20c5263492/libs/esp32boot/esp32init.erl#L86 But storing it in nvs with nvs_put_binary, means it's stored as a binary. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 174fe85 + 47743ca commit d6f17ad

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)