summaryrefslogtreecommitdiff
path: root/monitor_tnt.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-14 00:41:24 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-14 00:41:24 -0400
commit2daef1ab8aafd0afe69cf80866a0dd390a269370 (patch)
tree9e0ddfd73edd5d18b7306127bcaf01b2a96096b3 /monitor_tnt.c
parentb54cbc920bac03a3c01412f5379c3473aff52c1d (diff)
downloadgpsd-2daef1ab8aafd0afe69cf80866a0dd390a269370.tar.gz
Reindent monitor mdules. Live test of gpsmon works.
Diffstat (limited to 'monitor_tnt.c')
-rw-r--r--monitor_tnt.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/monitor_tnt.c b/monitor_tnt.c
index 7b1aa505..a7fe523a 100644
--- a/monitor_tnt.c
+++ b/monitor_tnt.c
@@ -36,20 +36,20 @@ static WINDOW *thtmwin;
static bool tnt_initialize(void)
{
/*@ -onlytrans @*/
- thtmwin = derwin(devicewin, 6, 80, 0, 0);
+ thtmwin = derwin(devicewin, 6, 80, 0, 0);
(void)wborder(thtmwin, 0, 0, 0, 0, 0, 0, 0, 0),
- (void)syncok(thtmwin, true);
+ (void)syncok(thtmwin, true);
(void)wattrset(thtmwin, A_BOLD);
- (void)mvwaddstr(thtmwin, 0, 35, " PTNTHTM ");
- (void)mvwaddstr(thtmwin, 1, 1, "Heading: ");
- (void)mvwaddstr(thtmwin, 2, 1, "Pitch: ");
- (void)mvwaddstr(thtmwin, 3, 1, "Roll: ");
- (void)mvwaddstr(thtmwin, 4, 1, "Dip: ");
+ (void)mvwaddstr(thtmwin, 0, 35, " PTNTHTM ");
+ (void)mvwaddstr(thtmwin, 1, 1, "Heading: ");
+ (void)mvwaddstr(thtmwin, 2, 1, "Pitch: ");
+ (void)mvwaddstr(thtmwin, 3, 1, "Roll: ");
+ (void)mvwaddstr(thtmwin, 4, 1, "Dip: ");
- (void)mvwaddstr(thtmwin, 1, 40, "Magnetometer Status: ");
- (void)mvwaddstr(thtmwin, 2, 40, "Pitch Status: ");
- (void)mvwaddstr(thtmwin, 3, 40, "Roll Status ");
- (void)mvwaddstr(thtmwin, 4, 40, "Horizontal Field: ");
+ (void)mvwaddstr(thtmwin, 1, 40, "Magnetometer Status: ");
+ (void)mvwaddstr(thtmwin, 2, 40, "Pitch Status: ");
+ (void)mvwaddstr(thtmwin, 3, 40, "Roll Status ");
+ (void)mvwaddstr(thtmwin, 4, 40, "Horizontal Field: ");
(void)wattrset(thtmwin, A_NORMAL);
/*@ +onlytrans @*/
return true;
@@ -63,15 +63,15 @@ static void tnt_update(void)
*/
(void)nmea_parse((char *)session.packet.outbuffer, &session);
- (void)mvwaddstr(thtmwin, 1, 19, session.driver.nmea.field[1]);
- (void)mvwaddstr(thtmwin, 2, 19, session.driver.nmea.field[3]);
- (void)mvwaddstr(thtmwin, 3, 19, session.driver.nmea.field[5]);
- (void)mvwaddstr(thtmwin, 4, 19, session.driver.nmea.field[7]);
+ (void)mvwaddstr(thtmwin, 1, 19, session.driver.nmea.field[1]);
+ (void)mvwaddstr(thtmwin, 2, 19, session.driver.nmea.field[3]);
+ (void)mvwaddstr(thtmwin, 3, 19, session.driver.nmea.field[5]);
+ (void)mvwaddstr(thtmwin, 4, 19, session.driver.nmea.field[7]);
- (void)mvwaddstr(thtmwin, 1, 61, session.driver.nmea.field[2]);
- (void)mvwaddstr(thtmwin, 2, 61, session.driver.nmea.field[4]);
- (void)mvwaddstr(thtmwin, 3, 61, session.driver.nmea.field[6]);
- (void)mvwaddstr(thtmwin, 4, 61, session.driver.nmea.field[8]);
+ (void)mvwaddstr(thtmwin, 1, 61, session.driver.nmea.field[2]);
+ (void)mvwaddstr(thtmwin, 2, 61, session.driver.nmea.field[4]);
+ (void)mvwaddstr(thtmwin, 3, 61, session.driver.nmea.field[6]);
+ (void)mvwaddstr(thtmwin, 4, 61, session.driver.nmea.field[8]);
}
static int tnt_command(char line[])
@@ -116,7 +116,7 @@ const struct monitor_object_t tnt_mmt = {
.update = tnt_update,
.command = tnt_command,
.wrap = tnt_wrap,
- .min_y = 6, .min_x = 80, /* size of the device window */
+ .min_y = 6,.min_x = 80, /* size of the device window */
.driver = &trueNorth,
};
#endif /* TNT_ENABLE */