[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] RTCM relaying problem
From: |
José Miguel Gonçalves |
Subject: |
[gpsd-dev] RTCM relaying problem |
Date: |
Sat, 14 Apr 2012 12:14:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Eric,
You have made a mistake on your patch for this problem. Please apply this:
diff --git a/gpsd.c b/gpsd.c
index 4bcc5ca..93264f0 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1531,12 +1531,12 @@ static void consume_packets(struct gps_device_t
*device)
/* *INDENT-OFF* */
if (dp->device_type->rtcm_writer != NULL) {
if (dp->device_type->rtcm_writer(dp,
- (const char *)dp->packet.outbuffer,
- dp->packet.outbuflen) == 0)
+ (const char *)device->packet.outbuffer,
+ device->packet.outbuflen) == 0)
gpsd_report(LOG_ERROR, "Write to RTCM sink failed\n");
else {
gpsd_report(LOG_IO, "<= DGPS: %zd bytes of RTCM
relayed.\n",
- dp->packet.outbuflen);
+ device->packet.outbuflen);
}
}
/* *INDENT-ON* */
Best regards,
José Gonçalves