1
0
mirror of https://github.com/whowechina/iidx_pico.git synced 2024-09-23 18:58:22 +02:00

Fixed a major config save bug

This commit is contained in:
whowechina 2023-09-16 16:51:44 +08:00
parent e44a8a0a2c
commit f50c520fc8
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -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)

View File

@ -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);
}