From d1841df0d5afecb067b6ade8175e30c9c820e4c8 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 13 Jun 2016 22:53:46 -0700 Subject: [PATCH] init cursor_x --- src/main/io/osd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/io/osd.c b/src/main/io/osd.c index ebc489dd94..1cae90f982 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -477,7 +477,8 @@ void show_menu(void) { uint16_t pos; col_t *col; row_t *row; - int16_t cursor_x, cursor_y; + int16_t cursor_x = 0; + int16_t cursor_y = 0; if (activating_menu) { if (sticks[YAW] < 60 && sticks[YAW] > 40 && sticks[PITCH] > 40 && sticks[PITCH] < 60 && sticks[ROLL] > 40 && sticks[ROLL] < 60)