[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] gpsmon TOFF with ublox driver not updating
From: |
Nuno Gonçalves |
Subject: |
Re: [gpsd-dev] gpsmon TOFF with ublox driver not updating |
Date: |
Wed, 26 Aug 2015 15:15:18 +0100 |
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