Diff of /trunk/src/map-tool.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 282 by harbaum, Wed May 26 19:21:47 2010 UTC revision 283 by harbaum, Thu May 27 19:13:18 2010 UTC
# Line 121  float map_gps_get_heading(map_context_t Line 121  float map_gps_get_heading(map_context_t
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;
# Line 1098  void map(appdata_t *appdata) { Line 1098  void map(appdata_t *appdata) {
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

Legend:
Removed from v.282  
changed lines
  Added in v.283