mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
LP-281 use correct operator
This commit is contained in:
parent
d3f150f5a8
commit
30e7e1f4e6
@ -57,7 +57,7 @@ PIOS_SENSORS_Instance *PIOS_SENSORS_GetInstanceByType(const PIOS_SENSORS_Instanc
|
|||||||
PIOS_SENSORS_Instance *sensor;
|
PIOS_SENSORS_Instance *sensor;
|
||||||
|
|
||||||
LL_FOREACH((PIOS_SENSORS_Instance *)previous_instance, sensor) {
|
LL_FOREACH((PIOS_SENSORS_Instance *)previous_instance, sensor) {
|
||||||
if (sensor->type && type) {
|
if (sensor->type & type) {
|
||||||
return sensor;
|
return sensor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user