mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Fix up ADC tests command to read all channels at once
This commit is contained in:
@@ -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