mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 15:00:47 +08:00
Fix up ADC tests command to read all channels at once
This commit is contained in:
1 parent
fd8cae19bd
commit
4e6e40e5d8
1 file changed
+2
-2
@@ -66,8 +66,8 @@ int test_adc(int argc, char *argv[])
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < 5; i++) {
|
||||
/* make space for a maximum of eight channels */
|
||||
struct adc_msg_s data[8];
|
||||
/* make space for a maximum of ten channels */
|
||||
struct adc_msg_s data[10];
|
||||
/* read all channels available */
|
||||
ssize_t count = read(fd, data, sizeof(data));
|
||||
|
||||
|
||||
Reference in new issue
Block a user