From a5b8ead88957c57022f6dc8ac42123f0a87e55c6 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Mon, 17 Oct 2022 17:56:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=A4=B1=E8=B4=A5=E7=9A=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 )