mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
GCS_MAVLink: allow mavftp on AP_Periph
This commit is contained in:
parent
a8ab20abd9
commit
e9faab288c
@ -32,10 +32,11 @@ struct GCS_MAVLINK::ftp_state GCS_MAVLINK::ftp;
|
||||
bool GCS_MAVLINK::ftp_init(void) {
|
||||
|
||||
// check if ftp is disabled for memory savings
|
||||
#if !defined(HAL_BUILD_AP_PERIPH)
|
||||
if (AP_BoardConfig::ftp_disabled()) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
#endif
|
||||
// we can simply check if we allocated everything we need
|
||||
|
||||
if (ftp.requests != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user