diff --git a/include/sensors/core/sensor_hardware_interface.hpp b/include/sensors/core/sensor_hardware_interface.hpp index ef432a77a..1070ebddc 100644 --- a/include/sensors/core/sensor_hardware_interface.hpp +++ b/include/sensors/core/sensor_hardware_interface.hpp @@ -55,14 +55,14 @@ class SensorHardwareBase { virtual auto reset_sync() -> void = 0; virtual auto check_tip_presence() -> bool = 0; - auto mask_satisfied() -> bool { + auto mask_satisfied() -> const bool { if (set_sync_required_mask != static_cast(SensorIdBitMask::UNUSED)) { // if anything is "required" only sync when they are all triggered return (sync_state_mask & set_sync_required_mask) == set_sync_required_mask; } - return sync_state_mask & set_sync_enabled_mask; + return (sync_state_mask & set_sync_enabled_mask) != 0; } auto set_sync(can::ids::SensorId sensor) -> void {