lr还是不能用,切换xy试试

This commit is contained in:
anod 2022-10-17 13:12:06 +08:00
parent 692be90179
commit bf184e29b7

View File

@ -158,12 +158,12 @@ static atp_pageopt_t config_adjust( atp_callerdata_t data, atp_counter_t index,
if( index == 0 ) if( index == 0 )
{ {
u8 light = g_oafConfig.backlight; u8 light = g_oafConfig.backlight;
if( l ) if( l || x )
{ {
light -= 10; light -= 10;
if( light % 10 ) light = light + (10-light%10); if( light % 10 ) light = light + (10-light%10);
} }
else if( r ) else if( r || y )
{ {
light += 10; light += 10;
if( light % 10 ) light = light - light % 10; if( light % 10 ) light = light - light % 10;