Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Jul 1, 2024
1 parent 730db71 commit 861c573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sensors/core/sensor_hardware_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t>(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 {
Expand Down

0 comments on commit 861c573

Please sign in to comment.