HAL_Linux: removed panic on bad SPI device

This commit is contained in:
Andrew Tridgell 2016-11-08 14:39:59 +11:00
parent 20cd165476
commit 4cf6dd1818

View File

@ -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 */