修正编译的警告

This commit is contained in:
anod 2022-10-17 11:29:00 +08:00
parent 4589e69247
commit 4888df4fdc

View File

@ -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 )
{