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 |
} |
} |