mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 00:53:41 +08:00
Fix typo/thinko in fms_spi_autopilot_msg, should parse on valid, instead of increment error counter when valid
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user