mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
HAL_Linux: removed panic on bad SPI device
This commit is contained in:
parent
20cd165476
commit
4cf6dd1818
@ -430,7 +430,8 @@ SPIDeviceManager::get_device(const char *name)
|
||||
}
|
||||
|
||||
if (!desc) {
|
||||
AP_HAL::panic("SPI: invalid device name");
|
||||
printf("SPI: Invalid device name: %s\n", name);
|
||||
return AP_HAL::OwnPtr<AP_HAL::SPIDevice>(nullptr);
|
||||
}
|
||||
|
||||
/* Find if bus is already open */
|
||||
|
Loading…
Reference in New Issue
Block a user