diff --git a/argus-core/src/signals/bool_ops.rs b/argus-core/src/signals/bool_ops.rs index cc87015..6ca399e 100644 --- a/argus-core/src/signals/bool_ops.rs +++ b/argus-core/src/signals/bool_ops.rs @@ -29,7 +29,7 @@ impl core::ops::BitOr for &Signal { type Output = Signal; fn bitor(self, other: Self) -> Self::Output { - apply2(self, other, |lhs, rhs| lhs && rhs) + apply2(self, other, |lhs, rhs| lhs || rhs) } } @@ -37,7 +37,7 @@ impl core::ops::BitOr<&ConstantSignal> for &Signal { type Output = Signal; fn bitor(self, other: &ConstantSignal) -> Self::Output { - apply2_const(self, other, |lhs, rhs| lhs && rhs) + apply2_const(self, other, |lhs, rhs| lhs || rhs) } } @@ -68,7 +68,7 @@ impl core::ops::BitOr for &ConstantSignal { type Output = ConstantSignal; fn bitor(self, rhs: Self) -> Self::Output { - ConstantSignal::::new(self.value && rhs.value) + ConstantSignal::::new(self.value || rhs.value) } }