X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Fao-dump-up%2Fao-dump-up.c;h=6866ef592997e7fe24bf9954d5c6fa81c3b56faa;hb=6f729ff46b2f4531db68f0af85e7e9fe0f6d1969;hp=df05088cadaf2e4cb33d0b61482eac66f5210a5e;hpb=f14c799ae7ff3be56c28f5694f04c03daff7708e;p=fw%2Faltos diff --git a/ao-tools/ao-dump-up/ao-dump-up.c b/ao-tools/ao-dump-up/ao-dump-up.c index df05088c..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; @@ -147,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;