aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sensors/sensors.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-03-17 17:02:10 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-17 17:02:10 +0100
commitd940bdf7f64268d46503cf4b0b996bec3036603e (patch)
tree9f366ccbbf06d566140f733ff20261e54ce6b727 /src/modules/sensors/sensors.cpp
parent4e6e40e5d850f737b25d657630ac89ad1d54e67c (diff)
downloadpx4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.tar.gz
px4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.tar.bz2
px4-firmware-d940bdf7f64268d46503cf4b0b996bec3036603e.zip
Consistently making space for a maximum of 12 channels, 10 channels (including reference / temperature) are used / available right now
Diffstat (limited to 'src/modules/sensors/sensors.cpp')
-rw-r--r--src/modules/sensors/sensors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp
index 6560dec3d..8da5bb294 100644
--- a/src/modules/sensors/sensors.cpp
+++ b/src/modules/sensors/sensors.cpp
@@ -1169,8 +1169,8 @@ Sensors::adc_poll(struct sensor_combined_s &raw)
hrt_abstime t = hrt_absolute_time();
/* rate limit to 100 Hz */
if (t - _last_adc >= 10000) {
- /* make space for a maximum of ten channels (to ensure reading all channels at once) */
- struct adc_msg_s buf_adc[10];
+ /* make space for a maximum of twelve channels (to ensure reading all channels at once) */
+ struct adc_msg_s buf_adc[12];
/* read all channels available */
int ret = read(_fd_adc, &buf_adc, sizeof(buf_adc));