HAL_PX4: use sensor_config_error()

This commit is contained in:
Andrew Tridgell 2017-05-02 12:06:13 +10:00
parent cbea29ad71
commit 37166301c9
1 changed files with 2 additions and 2 deletions

View File

@ -202,10 +202,10 @@ void PX4Storage::_mtd_load(void)
if (AP_BoardConfig::px4_start_driver(mtd_main, "mtd", "readtest " MTD_PARAMS_FILE)) {
printf("mtd: readtest OK\n");
} else {
AP_BoardConfig::px4_sensor_error("mtd: failed readtest");
AP_BoardConfig::sensor_config_error("mtd: failed readtest");
}
} else {
AP_BoardConfig::px4_sensor_error("mtd: failed start");
AP_BoardConfig::sensor_config_error("mtd: failed start");
}
int fd = open(MTD_PARAMS_FILE, O_RDONLY);