1
0
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:
Vladimir Zidar 2016-04-07 01:00:42 +02:00
parent d3f150f5a8
commit 30e7e1f4e6

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