Linux: adcsim fixes

Call to read should have been px4_read.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-04-15 16:13:00 -07:00
parent 93c39e6d1d
commit 55581cc438
@@ -32,12 +32,12 @@
****************************************************************************/ ****************************************************************************/
/** /**
* @file adc.cpp * @file adcsim.cpp
* *
* Driver for the STM32 ADCSIM. * Driver for the ADCSIM.
* *
* This is a low-rate driver, designed for sampling things like voltages * This is a designed for simulating sampling things like voltages
* and so forth. It avoids the gross complexity of the NuttX ADCSIM driver. * and so forth.
*/ */
#include <px4_config.h> #include <px4_config.h>
@@ -249,7 +249,7 @@ test(void)
for (unsigned i = 0; i < 50; i++) { for (unsigned i = 0; i < 50; i++) {
adc_msg_s data[12]; adc_msg_s data[12];
ssize_t count = read(fd, data, sizeof(data)); ssize_t count = px4_read(fd, data, sizeof(data));
if (count < 0) { if (count < 0) {
warnx("read error"); warnx("read error");