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