diff --git a/avr/send.c b/avr/send.c index 611cade..3cd8f18 100644 --- a/avr/send.c +++ b/avr/send.c @@ -198,8 +198,24 @@ int main() { } case 2: { - header.type = c; - i++; + switch (c) { + case 0x01: + case 0x02: + case 0x04: + case 0x08: + case 0x0f: { + header.type = c; + i++; + + break; + } + + default: { + i = 0; + + break; + } + } break; }