mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +08:00
Printing error reason in warning
This commit is contained in:
@@ -780,7 +780,7 @@ Sensors::adc_init()
|
||||
_fd_adc = open(ADC_DEVICE_PATH, O_RDONLY | O_NONBLOCK);
|
||||
|
||||
if (_fd_adc < 0) {
|
||||
warnx(ADC_DEVICE_PATH);
|
||||
warn(ADC_DEVICE_PATH);
|
||||
warnx("FATAL: no ADC found");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user