Added missing ADC start command, fixed return value / error behavior of ADC init

This commit is contained in:
Lorenz Meier
2013-01-06 12:36:46 +01:00
parent 309980cd4d
commit c94076f673
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -8,6 +8,7 @@
#
ms5611 start
adc start
if mpu6000 start
then
+2 -2
View File
@@ -640,8 +640,8 @@ Sensors::adc_init()
_fd_adc = open("/dev/adc0", O_RDONLY | O_NONBLOCK);
if (_fd_adc < 0) {
warn("/dev/adc0");
errx(1, "FATAL: no ADC found");
warnx("/dev/adc0");
warnx(1, "FATAL: no ADC found");
}
}