ao-tools/ao-test-gps: Improve output formatting
authorKeith Packard <keithp@keithp.com>
Sat, 13 Sep 2014 03:56:29 +0000 (20:56 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 13 Sep 2014 03:56:29 +0000 (20:56 -0700)
Add a newline before printing out the flags and sats at exit time

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/ao-test-gps/ao-test-gps.c

index 08b6602f794edb637443051dc47987f5e66c9096..84ed713d640c95614efd7bc7fb30f5ac8321c238 100644 (file)
@@ -160,6 +160,7 @@ do_gps(struct cc_usb *usb) {
                int actual_sats = strtol(sats[1], NULL, 0);
 
                if (actual_flags & (1 << 4)) {
                int actual_sats = strtol(sats[1], NULL, 0);
 
                if (actual_flags & (1 << 4)) {
+                       printf("\n");
                        printf("Flags: %s (0x%x)\n", flags[1], actual_flags);
                        printf("Sats: %s (%d)\n", sats[1], actual_sats);
                        break;
                        printf("Flags: %s (0x%x)\n", flags[1], actual_flags);
                        printf("Sats: %s (%d)\n", sats[1], actual_sats);
                        break;