diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index 6890aae0ec..0edbe81615 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c @@ -164,7 +164,7 @@ static void mouse_event(SDL_MouseButtonEvent *event, bool button_up) break; } - if (debug_wps && event->button == BUTTON_LEFT) + if (debug_wps && event->button == SDL_BUTTON_LEFT) { int m_x, m_y;