gpsd-dev
[Top][All Lists]
Advanced

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

[gpsd-dev] Fwd: gpsmon TOFF with ublox driver not updating


From: Nuno Gonçalves
Subject: [gpsd-dev] Fwd: gpsmon TOFF with ublox driver not updating
Date: Fri, 18 Sep 2015 11:01:34 +0100

Please note this patch.

Thanks,
Nuno


---------- Forwarded message ----------
From: Nuno Gonçalves <address@hidden>
Date: Wed, Aug 26, 2015 at 3:15 PM
Subject: Re: gpsmon TOFF with ublox driver not updating
To: address@hidden


Subject: [PATCH] gpsmon: Update TOFF field when using u-blox protocol

The window where TOFF is displayed was not being refreshed after the
first write.

This might have went unoticed during test because if PPS_ENABLE is defined, then
wnoutrefresh() is called at pps_update() so in this condition the bug is masked.

Signed-off-by: Nuno Goncalves <address@hidden>
---
 monitor_ubx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/monitor_ubx.c b/monitor_ubx.c
index 4425d35..b216f0a 100644
--- a/monitor_ubx.c
+++ b/monitor_ubx.c
@@ -72,6 +72,7 @@ static bool ubx_initialize(void)
     if ((ppswin = derwin(devicewin, 3, 51, 16, 28)) == NULL)
  return false;
     (void)wborder(ppswin, 0, 0, 0, 0, 0, 0, 0, 0);
+    (void)syncok(ppswin, true);
     (void)wattrset(ppswin, A_BOLD);
 #define TOFF_LINE 1
 #define TOFF_COLUMN 1
--
2.1.4

On Sun, Aug 23, 2015 at 12:13 AM, Nuno Gonçalves <address@hidden> wrote:
> I'm testing with a ublox M8 series with current gpsd git HEAD.
>
> gpsmon does show a TOFF when started but it is never updated after.
>
> If the driver is NMEA, that is if I call gpsmon -n, TOFF is updated
> every cycle as expected.
>
> Thanks,
> Nuno



reply via email to

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