From 0a926135282fa312d104961e489c69457f186e81 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 5 Jun 2016 16:45:04 -0500 Subject: [PATCH] Because people will nitpick anything --- avr/recv.c | 9 ++------- avr/send.c | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/avr/recv.c b/avr/recv.c index 3b7dcb3..55b6634 100644 --- a/avr/recv.c +++ b/avr/recv.c @@ -6,14 +6,9 @@ #include #include -static volatile tabby_printer_packet header = { - .type = 0, - .compression = 0, - .size = 0 -}; +static volatile tabby_printer_packet header; -static volatile uint16_t i = 0, - b = 0; +static volatile uint16_t i, b; /* * SPI byte receipt interrupt vector diff --git a/avr/send.c b/avr/send.c index eade828..96590ee 100644 --- a/avr/send.c +++ b/avr/send.c @@ -7,17 +7,12 @@ #include #include -static tabby_printer_packet header = { - .type = 0, - .compression = 0, - .size = 0 -}; - +static tabby_printer_packet header; static tabby_printer_response response; static uint8_t body[TABBY_PRINTER_PACKET_MAX_SIZE]; -static uint16_t sum = 0x0000; +static uint16_t sum; /* * So like, we're abusing pins here. So badly, it's beyond. So here's