projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools/ao-telem: Print out 'log_max' value. Clean up compiler warnings.
[fw/altos]
/
ao-tools
/
ao-telem
/
ao-telem.c
diff --git
a/ao-tools/ao-telem/ao-telem.c
b/ao-tools/ao-telem/ao-telem.c
index 7ab2310a5dc4a4ec3620147087b2305d4249a788..ea0aa8d9b7d9cc8cd4d94e4e88bf5cec386c88cd 100644
(file)
--- a/
ao-tools/ao-telem/ao-telem.c
+++ b/
ao-tools/ao-telem/ao-telem.c
@@
-44,7
+44,6
@@
main (int argc, char **argv)
char line[80];
int c, i, ret = 0;
FILE *file;
char line[80];
int c, i, ret = 0;
FILE *file;
- int serial;
int ignore_crc = 0;
while ((c = getopt_long(argc, argv, "c", options, NULL)) != -1) {
switch (c) {
int ignore_crc = 0;
while ((c = getopt_long(argc, argv, "c", options, NULL)) != -1) {
switch (c) {
@@
-63,11
+62,6
@@
main (int argc, char **argv)
ret++;
continue;
}
ret++;
continue;
}
- s = strstr(argv[i], "-serial-");
- if (s)
- serial = atoi(s + 8);
- else
- serial = 0;
while (fgets(line, sizeof (line), file)) {
union ao_telemetry_all telem;
char call[AO_MAX_CALLSIGN+1];
while (fgets(line, sizeof (line), file)) {
union ao_telemetry_all telem;
char call[AO_MAX_CALLSIGN+1];
@@
-104,7
+98,7
@@
main (int argc, char **argv)
memcpy(version, telem.configuration.version, AO_MAX_VERSION);
call[AO_MAX_CALLSIGN] = '\0';
version[AO_MAX_CALLSIGN] = '\0';
memcpy(version, telem.configuration.version, AO_MAX_VERSION);
call[AO_MAX_CALLSIGN] = '\0';
version[AO_MAX_CALLSIGN] = '\0';
- printf ("device %3d flight %5d config %3d.%03d delay %2d main %4d",
+ printf ("device %3d flight %5d config %3d.%03d delay %2d main %4d
log_max %5d
",
telem.configuration.device,
telem.configuration.flight,
telem.configuration.config_major,
telem.configuration.device,
telem.configuration.flight,
telem.configuration.config_major,