Diff of /trunk/src/gps.c

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

revision 11 by harbaum, Fri Jun 26 12:24:24 2009 UTC revision 14 by harbaum, Sat Jun 27 19:18:40 2009 UTC
# Line 561  void gps_init(appdata_t *appdata) { Line 561  void gps_init(appdata_t *appdata) {
561  #if MAEMO_VERSION_MAJOR < 5  #if MAEMO_VERSION_MAJOR < 5
562    gps_state->control = location_gpsd_control_get_default();    gps_state->control = location_gpsd_control_get_default();
563    
564    if(appdata->gps_enabled && gps_state->control &&    if(gps_state->control && gps_state->control->can_control) {
      gps_state->control->can_control) {  
565      printf("Having control over GPSD and GPS is to be enabled, starting it\n");      printf("Having control over GPSD and GPS is to be enabled, starting it\n");
566      location_gpsd_control_start(gps_state->control);      location_gpsd_control_start(gps_state->control);
567    }    }

Legend:
Removed from v.11  
changed lines
  Added in v.14