diff --git a/boards/holybro/kakuteh7/init/rc.board_defaults b/boards/holybro/kakuteh7/init/rc.board_defaults index 9adff92894..fa014c6b48 100644 --- a/boards/holybro/kakuteh7/init/rc.board_defaults +++ b/boards/holybro/kakuteh7/init/rc.board_defaults @@ -3,6 +3,16 @@ # board specific defaults #------------------------------------------------------------------------------ +# transision from params file to flash-based params (2022-08) +if [ -f $PARAM_FILE ] +then + param load $PARAM_FILE + param save + # create a backup + mv $PARAM_FILE ${PARAM_FILE}.bak + reboot +fi + param set-default BAT1_V_DIV 11.2 param set-default BAT1_A_PER_V 59.5 diff --git a/boards/holybro/kakuteh7/src/board_config.h b/boards/holybro/kakuteh7/src/board_config.h index 808ba7d947..01dd49ccb1 100644 --- a/boards/holybro/kakuteh7/src/board_config.h +++ b/boards/holybro/kakuteh7/src/board_config.h @@ -182,8 +182,7 @@ #define BOARD_ENABLE_CONSOLE_BUFFER -// not working on h7 yet, due to ECC -//#define FLASH_BASED_PARAMS +#define FLASH_BASED_PARAMS __BEGIN_DECLS