1
0
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:
Alessio Morale 2016-04-14 11:40:30 +02:00
commit 8dff13d913

View File

@ -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;
}
}