121 |
} |
} |
122 |
|
|
123 |
float map_gps_get_eph(map_context_t *context) { |
float map_gps_get_eph(map_context_t *context) { |
124 |
if(context->gps.set & FIX_LATLON_SET) |
if(context->gps.set & FIX_HERR_SET) |
125 |
return context->gps.fix.eph; |
return context->gps.fix.eph; |
126 |
|
|
127 |
return NAN; |
return NAN; |
1098 |
|
|
1099 |
/* install handler for timed updates of the gps button */ |
/* install handler for timed updates of the gps button */ |
1100 |
context->handler_id = gtk_timeout_add(1000, map_gps_update, context); |
context->handler_id = gtk_timeout_add(1000, map_gps_update, context); |
1101 |
gps_register_callback(appdata->gps_state, LATLON_CHANGED | HERR_CHANGED, |
gps_register_callback(appdata->gps_state, |
1102 |
|
LATLON_CHANGED | HERR_CHANGED | TRACK_CHANGED, |
1103 |
gps_callback, context); |
gps_callback, context); |
1104 |
|
|
1105 |
#if MAEMO_VERSION_MAJOR == 5 |
#if MAEMO_VERSION_MAJOR == 5 |