处理main.c的warning

This commit is contained in:
anod 2023-04-27 14:58:53 +08:00
parent 46ea382e70
commit 3b999e0c44
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ void keyremix_update( uint16_t active_cheatkey )
if( flags_holding & flag ) if( flags_holding & flag )
{ {
// up when console keys up // exclude console keys is up
res |= now_release(now, prev_status, p->game_keys) ^ p->game_keys; res |= now_release(now, prev_status, p->game_keys) ^ p->game_keys;
} }
else if( oldf != flags_holding )// release else if( oldf != flags_holding )// release

View File

@ -28,8 +28,8 @@
static void setBacklight(void) static void setBacklight(void)
{ {
u8 backlightMax; u16 backlightMax;
u8 backlightMin; u16 backlightMin;
if(MCU_getSystemModel() >= 4) if(MCU_getSystemModel() >= 4)
{ {
backlightMax=800; backlightMax=800;