diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index b20490a2d0..cb27c38720 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -272,9 +272,8 @@ int kbd_input(char* text, int buflen) FOR_NB_SCREENS(l) { struct keyboard_parameters *pm = ¶m[l]; - struct screen *sc = &screens[l]; - #if LCD_WIDTH >= 160 && LCD_HEIGHT >= 96 + struct screen *sc = &screens[l]; if (sc->width >= 160 && sc->height >= 96) { @@ -719,7 +718,7 @@ int kbd_input(char* text, int buflen) screens[l].update(); button = get_action(CONTEXT_KEYBOARD, HZ/2); -#ifdef HAVE_REMOTE_LCD +#if NB_SCREENS > 1 button_screen = (get_action_statuscode(NULL) & ACTION_REMOTE) ? 1 : 0; #endif pm = ¶m[button_screen];