From 5dc16c35f9bd02bf62c5859a822a1f7838edd088 Mon Sep 17 00:00:00 2001 From: Peter M Date: Fri, 31 Jan 2025 13:37:27 +0100 Subject: [PATCH] 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 --- CHANGELOG.md | 1 + libs/esp32boot/esp32init.erl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83fc96448..5e83c592e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/libs/esp32boot/esp32init.erl b/libs/esp32boot/esp32init.erl index 81a0028dc..e8d263390 100644 --- a/libs/esp32boot/esp32init.erl +++ b/libs/esp32boot/esp32init.erl @@ -85,7 +85,7 @@ get_boot_path() -> undefined -> "/dev/partition/by-name/main.avm"; Path -> - Path + binary_to_list(Path) end. get_start_module() ->