GCS_MAVLink: allow mavftp on AP_Periph

This commit is contained in:
bugobliterator 2021-07-24 00:18:01 +05:30 committed by Andrew Tridgell
parent a8ab20abd9
commit e9faab288c
1 changed files with 2 additions and 1 deletions

View File

@ -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) {