Fix typo/thinko in fms_spi_autopilot_msg, should parse on valid, instead of increment error counter when valid

This commit is contained in:
Allen Ibara
2010-08-12 22:54:36 +00:00
parent bd9c6ef713
commit 9855eca1e0
+2 -2
View File
@@ -159,8 +159,8 @@ void spi_ap_link_periodic()
spi_link_send(&msg_down, sizeof(struct AutopilotMessageCRCFrame), &msg_up, &crc_valid);
if(crc_valid) {
crc_errors++;
} else {
passthrough_up_parse(&msg_up.payload.msg_up);
} else {
crc_errors++;
}
}