- for (state = 0; state < ao_monitoring + 1; state++)
- printf("%02x ", recv_raw.packet[state]);
- printf("%02x\n", recv_raw.packet[state]);
+ printf ("TELEM %02x", ao_monitoring + 2);
+ sum = 0x5a;
+ for (state = 0; state < ao_monitoring + 2; state++) {
+ byte = recv_raw.packet[state];
+ sum += byte;
+ printf("%02x", byte);
+ }
+ printf("%02x\n", sum);