mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:26:50 +08:00
adc: allow "adc test" to read 10 values
This commit is contained in:
committed by
Lorenz Meier
parent
c7d8535151
commit
bee8e27f04
@@ -341,7 +341,7 @@ test(void)
|
|||||||
err(1, "can't open ADC device");
|
err(1, "can't open ADC device");
|
||||||
|
|
||||||
for (unsigned i = 0; i < 50; i++) {
|
for (unsigned i = 0; i < 50; i++) {
|
||||||
adc_msg_s data[8];
|
adc_msg_s data[10];
|
||||||
ssize_t count = read(fd, data, sizeof(data));
|
ssize_t count = read(fd, data, sizeof(data));
|
||||||
|
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user