Skip to content

Commit

Permalink
Fix boot_path Path loading
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
petermm committed Feb 4, 2025
1 parent b257211 commit 5dc16c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ certain VM instructions are used.
- Fixed compilation with latest debian gcc-arm-none-eabi
- Fix `network:stop/0` on ESP32 so the network can be started again
- Fix a memory corruption caused by `binary:split/2,3`
- Fixed support for setting boot_path in NVS.

## [0.6.5] - 2024-10-15

Expand Down
2 changes: 1 addition & 1 deletion libs/esp32boot/esp32init.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ get_boot_path() ->
undefined ->
"/dev/partition/by-name/main.avm";
Path ->
Path
binary_to_list(Path)
end.

get_start_module() ->
Expand Down

0 comments on commit 5dc16c3

Please sign in to comment.