[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] gpsmon: Update TOFF field when using u-blox proto
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH] gpsmon: Update TOFF field when using u-blox protocol |
Date: |
Sun, 13 Dec 2015 19:23:13 -0800 |
Yo Nuno!
If PPS_ENABLE is not defined, then who cares if the ppswin is updated?
On Sun, 13 Dec 2015 23:48:53 +0000
Nuno Gonçalves <address@hidden> wrote:
> 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
>
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgpK5KhtRp4lu.pgp
Description: OpenPGP digital signature