mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_Compass: DEVIOCGDEVICEID is (currently) not defined in VRNuttX
This commit is contained in:
parent
ba25f051e7
commit
701aa9ac4c
@ -57,8 +57,10 @@ bool AP_Compass_VRBRAIN::init(void)
|
||||
}
|
||||
|
||||
for (uint8_t i=0; i<_num_instances; i++) {
|
||||
#ifdef DEVIOCGDEVICEID
|
||||
// get device id
|
||||
_dev_id[i] = ioctl(_mag_fd[i], DEVIOCGDEVICEID, 0);
|
||||
#endif
|
||||
|
||||
// average over up to 20 samples
|
||||
if (ioctl(_mag_fd[i], SENSORIOCSQUEUEDEPTH, 20) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user