Skip to content

Commit

Permalink
🎨 (drivers): Update CoreTouchSensor
Browse files Browse the repository at this point in the history
  • Loading branch information
MMyster committed Aug 24, 2022
1 parent 3e92358 commit f5edd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/CoreTouchSensor/tests/CoreTouchSensor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CoreTouchSensorTest : public ::testing::Test
leka::io::expanded::DigitalIn<> in {mockIOExpander, pin_number};
leka::io::expanded::DigitalOut<> out {mockIOExpander, pin_number};
mock::CoreQDAC dac {};
uint8_t channel {mcp4728::channel::B};
uint8_t channel {0x01};

CoreTouchSensor sensor {in, out, dac, channel};
};
Expand Down Expand Up @@ -79,6 +79,6 @@ TEST_F(CoreTouchSensorTest, setSensitivity)
auto expected_value = utils::math::map<uint16_t, uint16_t>(
value, CoreTouchSensor::default_min_sensitivity_value, CoreTouchSensor::default_max_sensitivity_value,
CoreTouchSensor::default_max_sensitivity_value, CoreTouchSensor::default_min_sensitivity_value);
EXPECT_CALL(dac, write(channel, expected_value, false)).Times(1);
EXPECT_CALL(dac, write(channel, expected_value)).Times(1);
sensor.setSensitivity(value);
}

0 comments on commit f5edd63

Please sign in to comment.