summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-10 09:06:44 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-10 09:06:44 -0400
commitd8c5494d98348193a8c0316801afa8613677340c (patch)
tree5ea4a8fbe20789f94778657e35d35dc3fd4f0510 /gpsmon.c
parent0e56927b9eafd7fd9c3ae26e4b8a6354eeec3e72 (diff)
downloadgpsd-d8c5494d98348193a8c0316801afa8613677340c.tar.gz
Repaint less often.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpsmon.c b/gpsmon.c
index def61af5..9b8e8828 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -446,6 +446,7 @@ static bool switch_type(const struct gps_type_t *devtype)
}
static void refresh_statwin()
+/* refresh the device-identification window */
{
/* *INDENT-OFF* */
type_name =
@@ -677,6 +678,7 @@ static bool do_command(void)
monitor_complain
("Device type has no speed switcher");
/* *INDENT-ON* */
+ refresh_statwin();
}
break;
#endif /* RECONFIGURE_ENABLE */
@@ -977,10 +979,11 @@ int main(int argc, char **argv)
FD_ZERO(&select_set);
+ refresh_statwin();
+
if ((bailout = setjmp(terminate)) == 0) {
/*@ -observertrans @*/
for (;;) {
- refresh_statwin();
(void)wmove(cmdwin, 0, 0);
/* get a packet -- calls gpsd_poll() */