mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-21 13:28:58 +01:00
Merged in mindnever/librepilot/LP-281_fix_PIOS_SENSORS_GetInstanceByType (pull request #221)
LP-281 use correct operator for type matching
This commit is contained in:
commit
8dff13d913
@ -57,7 +57,7 @@ PIOS_SENSORS_Instance *PIOS_SENSORS_GetInstanceByType(const PIOS_SENSORS_Instanc
|
||||
PIOS_SENSORS_Instance *sensor;
|
||||
|
||||
LL_FOREACH((PIOS_SENSORS_Instance *)previous_instance, sensor) {
|
||||
if (sensor->type && type) {
|
||||
if (sensor->type & type) {
|
||||
return sensor;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user