SITL: remove use of fprintf in SIM_SPI

This commit is contained in:
Peter Barker 2021-10-16 17:11:10 +11:00 committed by Peter Barker
parent 8c60bfc1c3
commit 7da5d9861a

View File

@ -75,7 +75,7 @@ int SPI::ioctl_transaction(uint8_t bus, uint8_t cs_pin, uint8_t count, spi_ioc_t
}
return dev_at_cs_pin.device.rdwr(count, data);
}
::fprintf(stderr, "Unhandled spi message: bus=%u cs_pin=%u\n", bus, cs_pin);
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "Unhandled spi message: bus=%u cs_pin=%u\n", bus, cs_pin);
return -1;
}