mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 14:24:12 +08:00
修正编译的警告
This commit is contained in:
parent
4589e69247
commit
4888df4fdc
@ -125,8 +125,10 @@ static atp_error_t config_item( atp_callerdata_t data, atp_counter_t index, atp_
|
||||
char buf[32];
|
||||
if( index == 0 )
|
||||
{
|
||||
ee_snprintf(buf, sizeof(buf)-1, "%d", g_oafConfig.backlight);
|
||||
buf[sizeof(buf)-1] = '\0';
|
||||
cfg->text = "屏幕亮度";
|
||||
cfg->extra_text = ee_snprintf(buf, sizeof(buf)-1, "%d", g_oafConfig.brightness);
|
||||
cfg->extra_text = buf;
|
||||
}
|
||||
else if( index == 1 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user