1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

init cursor_x

This commit is contained in:
nathan 2016-06-13 22:53:46 -07:00
parent 0fd8774d50
commit d1841df0d5

View file

@ -477,7 +477,8 @@ void show_menu(void) {
uint16_t pos; uint16_t pos;
col_t *col; col_t *col;
row_t *row; row_t *row;
int16_t cursor_x, cursor_y; int16_t cursor_x = 0;
int16_t cursor_y = 0;
if (activating_menu) { if (activating_menu) {
if (sticks[YAW] < 60 && sticks[YAW] > 40 && sticks[PITCH] > 40 && sticks[PITCH] < 60 && sticks[ROLL] > 40 && sticks[ROLL] < 60) if (sticks[YAW] < 60 && sticks[YAW] > 40 && sticks[PITCH] > 40 && sticks[PITCH] < 60 && sticks[ROLL] > 40 && sticks[ROLL] < 60)