X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ao-tools%2Fao-dump-up%2Fao-dump-up.c;h=6866ef592997e7fe24bf9954d5c6fa81c3b56faa;hp=b1f85af63473fe2485bf33780b7f79bd244efdb5;hb=6f729ff46b2f4531db68f0af85e7e9fe0f6d1969;hpb=b67e6ae8ce34ef119da96b442776bb3d78b4f874 diff --git a/ao-tools/ao-dump-up/ao-dump-up.c b/ao-tools/ao-dump-up/ao-dump-up.c index b1f85af6..6866ef59 100644 --- a/ao-tools/ao-dump-up/ao-dump-up.c +++ b/ao-tools/ao-dump-up/ao-dump-up.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "cc-usb.h" #include "cc.h" @@ -39,17 +40,6 @@ static void usage(char *program) exit(1); } -static uint8_t -log_checksum(int d[8]) -{ - uint8_t sum = 0x5a; - int i; - - for (i = 0; i < 8; i++) - sum += (uint8_t) d[i]; - return -sum; -} - static int get_nonwhite(struct cc_usb *cc, int timeout) { int c; @@ -140,20 +130,6 @@ static int find_header(struct cc_usb *cc) } } -static const char *state_names[] = { - "startup", - "idle", - "pad", - "boost", - "fast", - "coast", - "drogue", - "main", - "landed", - "invalid" -}; - - int main (int argc, char **argv) { @@ -161,7 +137,6 @@ main (int argc, char **argv) char *tty = NULL; char *device = NULL; int c; - char line[8192]; int nsamples; int i; int crc;