Commit cd1fddc1 authored by Projects's avatar Projects

Fixed switching between coordinates and elevation in gps_coord.

parent 5f803468
......@@ -110,7 +110,7 @@ static void gps_redraw(struct ui_widget *w)
static void gps_event(struct ui_widget *w, const struct event *evt)
{
if (evt->type == GPS_TICK)
if (evt->type == GPS_TICK || evt->type == BUTTON_PRESSED)
w->flags |= WF_DIRTY;
}
......@@ -166,7 +166,8 @@ void gpscoord_main(void *params)
gpsscreen += 1;
gpsscreen %= 2;
}
break;
/* fall through */
case GPS_TICK:
ui_update(&evt);
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment