Skip to content

Commit d867f1e

Browse files
author
=
committedFeb 21, 2025·
changed -o to -n, first column should be the BSSID because it usually does not change - while all other values are variable
1 parent b98c7fc commit d867f1e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed
 

‎hcxnmealog.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ if(fh_nmea != NULL)
575575
if(fh_csv != NULL)
576576
{
577577
strftime(timestring, TIMESTRING_LEN, "%H:%M:%S", localtime(&tspecakt.tv_sec));
578-
fprintf(fh_csv, "%s\t%02X%02X%02X%02X%02X%02X\n", timestring, macfrx->addr3[0], macfrx->addr3[1], macfrx->addr3[2], macfrx->addr3[3], macfrx->addr3[4], macfrx->addr3[5]);
578+
fprintf(fh_csv, "%02x%02x%02x%02x%02x%02x\t%s\n", macfrx->addr3[0], macfrx->addr3[1], macfrx->addr3[2], macfrx->addr3[3], macfrx->addr3[4], macfrx->addr3[5], timestring);
579579
}
580580
return;
581581
}
@@ -698,12 +698,14 @@ fprintf(stdout, "%s %s (C) %s ZeroBeat\n"
698698
"%s <options>\n"
699699
"\n"
700700
"options:\n"
701-
"-o <file> : output nmea 0183 track\n"
701+
"-n <file> : output nmea 0183 track\n"
702702
" track append to file: filename\n"
703703
" use gpsbabel to convert to other formats:\n"
704704
" gpsbabel -w -t -i nmea -f in_file.nmea -o gpx -F out_file.gpx\n"
705705
" gpsbabel -w -t -i nmea -f in_file.nmea -o kml -F out_file.kml\n"
706+
" time = UTC (in accordance with the NMEA 0183 standard)\n"
706707
"-c <file> : output separated by tabulator\n"
708+
" time = local system time\n"
707709
"-d <device> : GPS source\n"
708710
" use gpsd: gpsd\n"
709711
" use device: /dev/ttyACM0, /dev/tty/USBx, ...\n"
@@ -741,7 +743,7 @@ static char *nmeaoutname;
741743
static char *csvoutname;
742744
static char *bpfname;
743745

744-
static const char *short_options = "o:c:d:b:i:hv";
746+
static const char *short_options = "n:c:d:b:i:hv";
745747
static const struct option long_options[] =
746748
{
747749
{"bpf", required_argument, NULL, HCX_BPF},

‎include/hcxnmealog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define HCX_OUTPUT_NMEA 'o'
1+
#define HCX_OUTPUT_NMEA 'n'
22
#define HCX_OUTPUT_CSV 'c'
33
#define HCX_GPS_DEVICE 'd'
44
#define HCX_GPS_BAUDRATE 'b'

0 commit comments

Comments
 (0)