mirror of
https://github.com/whowechina/iidx_pico.git
synced 2024-11-12 01:10:50 +01:00
Fixed a major config save bug
This commit is contained in:
parent
e44a8a0a2c
commit
f50c520fc8
Binary file not shown.
@ -27,7 +27,7 @@ function(make_firmware board board_def)
|
|||||||
pico_add_extra_outputs(${board})
|
pico_add_extra_outputs(${board})
|
||||||
|
|
||||||
add_custom_command(TARGET ${board} POST_BUILD
|
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()
|
endfunction()
|
||||||
|
|
||||||
make_firmware(iidx_pico BOARD_IIDX_PICO)
|
make_firmware(iidx_pico BOARD_IIDX_PICO)
|
||||||
|
@ -80,5 +80,5 @@ void config_factory_reset()
|
|||||||
|
|
||||||
void config_init()
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user