AP_BoardConfig: use AP_Filesystem for sdcard mount

This commit is contained in:
Andrew Tridgell 2020-10-24 12:27:04 +11:00 committed by Peter Barker
parent ee50eaf3c9
commit 45af37298b
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include <AP_RTC/AP_RTC.h>
#include <AP_Vehicle/AP_Vehicle.h>
#include <GCS_MAVLink/GCS.h>
#include <AP_Filesystem/AP_Filesystem.h>
#include <stdio.h>
@ -337,7 +338,7 @@ void AP_BoardConfig::init()
uint8_t slowdown = constrain_int16(_sdcard_slowdown.get(), 0, 32);
const uint8_t max_slowdown = 8;
do {
if (hal.util->fs_init()) {
if (AP::FS().retry_mount()) {
break;
}
slowdown++;