Commit 3b65760
committed
AP_Baro: correct duplication check for i2c baro devices
we're indexing into the sensors array, so we should only iterate up to the number of sensors we have
could be a problem if there are DroneCAN backends involved as that can cause a mismatch between _num_sensors and _num_drivers1 parent 1cde2fb commit 3b65760
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
0 commit comments