diff --git a/Production/Firmware/iidx_pico.uf2 b/Production/Firmware/iidx_pico.uf2 index 4881cb7..bdcba4e 100644 Binary files a/Production/Firmware/iidx_pico.uf2 and b/Production/Firmware/iidx_pico.uf2 differ diff --git a/firmware/src/CMakeLists.txt b/firmware/src/CMakeLists.txt index 3a6bc84..5d69263 100644 --- a/firmware/src/CMakeLists.txt +++ b/firmware/src/CMakeLists.txt @@ -27,7 +27,7 @@ function(make_firmware board board_def) pico_add_extra_outputs(${board}) add_custom_command(TARGET ${board} POST_BUILD - COMMAND cp ${board}.uf2 /mnt/d/Code/iidx_pico/firmware/build) + COMMAND cp ${board}.uf2 ${CMAKE_CURRENT_LIST_DIR}/..) endfunction() make_firmware(iidx_pico BOARD_IIDX_PICO) diff --git a/firmware/src/config.c b/firmware/src/config.c index 1e6e849..6d5dae6 100644 --- a/firmware/src/config.c +++ b/firmware/src/config.c @@ -80,5 +80,5 @@ void config_factory_reset() void config_init() { - iidx_cfg = (iidx_cfg_t *)save_alloc(sizeof(iidx_cfg), &default_cfg, config_loaded); + iidx_cfg = (iidx_cfg_t *)save_alloc(sizeof(*iidx_cfg), &default_cfg, config_loaded); }