mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: fixed AP_Periph build error
This commit is contained in:
parent
e8e18959f7
commit
444af9e638
|
@ -334,11 +334,11 @@ void AP_BoardConfig::sensor_config_error(const char *reason)
|
|||
if (now - last_print_ms >= 3000) {
|
||||
last_print_ms = now;
|
||||
printf("Sensor failure: %s\n", reason);
|
||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !defined(HAL_BUILD_AP_PERIPH)
|
||||
gcs().send_text(MAV_SEVERITY_ERROR, "Check BRD_TYPE: %s", reason);
|
||||
#endif
|
||||
}
|
||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN)
|
||||
#if !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !defined(HAL_BUILD_AP_PERIPH)
|
||||
gcs().update_receive();
|
||||
gcs().update_send();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue