diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 1eabff7..43e204c 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -140,7 +140,7 @@ atp_text_t config_help[] = "A键            保存修改退出", "B键           不保存修改退出" }; -extern atp_error_t help_page( atp_text_t *wording, atp_counter_t length ) +extern atp_error_t help_page( atp_text_t *wording, atp_counter_t length ); #define LIGHT_MIN (MCU_getSystemModel() > 3 ? 16 : 20) #define LIGHT_MAX (MCU_getSystemModel() > 3 ? 142 : 117) @@ -178,7 +178,7 @@ static atp_error_t config_item( atp_callerdata_t data, atp_counter_t index, atp_ return ATP_SUCCESS; } -static atp_pageopt_t config_adjust( atp_callerdata_t data, atp_counter_t index, atp_boolean_t x, atp_boolean_t y, atp_boolean_t l, atp_boolean_t r, atp_boolean_t start, atp_boolean_t select ) +static atp_pageopt_t config_adjust( atp_callerdata_t, atp_counter_t index, atp_boolean_t, atp_boolean_t, atp_boolean_t l, atp_boolean_t r, atp_boolean_t start, atp_boolean_t ) { if( l || r ) { @@ -214,13 +214,13 @@ static atp_pageopt_t config_adjust( atp_callerdata_t data, atp_counter_t index, atp_error_t oaf_config_page() { u8 base[sizeof(g_oafConfig)]; - memcpy( base, g_oafConfig, sizeof(g_oafConfig) ); + memcpy( base, &g_oafConfig, sizeof(g_oafConfig) ); struct OafConfig *prev = &base[0]; atp_error_t res = atp_select( "参数配置", 4, config_item, config_adjust, NULL, 0, 0, NULL ); if( res == ATP_NO_ACTION ) { - memcpy( g_oafConfig, base, sizeof(g_oafConfig) ); + memcpy( &g_oafConfig, prev, sizeof(g_oafConfig) ); return ATP_SUCCESS; } else if( res == ATP_SUCCESS )