gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] JSON slave


From: address@hidden
Subject: [gpsd-dev] JSON slave
Date: Tue, 15 Oct 2013 13:07:10 +0200

Hello,

with this patch, gpsmon works with the MTK receiver again

Reinhard


@@ -37,6 +37,8 @@
static pthread_mutex_t report_mutex;
#endif /* PPS_ENABLE */

+bool enable_to_nmea = false;
+
/*
* True if a device type is non-null and has control methods.
*/
@@ -1185,9 +1187,11 @@ gps_mask_t gpsd_poll(struct gps_device_t *session)
* non-native NMEA mode. Without this guard, the code
* would forget the binary driver identification.
*/
- identified = (session->device_type == NULL)
- || (session->packet.type != session->device_type->packet_type &&
- session->packet.type != NMEA_PACKET);
+ identified = ( session->device_type == NULL)
+ || ( (session->device_type != session->device_type->packet_type) &&
+ (session->device_type->packet_type == JSON_PACKET))
+ || ( (session->packet.type != session->device_type->packet_type) &&
+ ((session->packet.type != NMEA_PACKET) /* || (enable_to_nmea == true) */ ));
/address@hidden@*/
if (identified) {
const struct gps_type_t **dp;

Please ignore the enable_to_nmea stuff at the moment, it may not be nessary.

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]