Skip to content
Snippets Groups Projects
Commit d6bbb7ce authored by Fabian Paus's avatar Fabian Paus
Browse files

Fix type mismatch compilation error

parent c3ba2976
No related branches found
No related tags found
Loading
......@@ -153,7 +153,7 @@ namespace armarx
{
const std::uint64_t pos = std::clamp(
static_cast<std::uint64_t>(pair.second * _driver->getMaxPosFingers()),
0, _driver->getMaxPosFingers());
0ul, _driver->getMaxPosFingers());
ARMARX_INFO << "set fingers " << pos;
_driver->sendFingerPWM(200, 2999, pos);
// fix until hw driver is fixed to handle multiple commands at the same time
......@@ -163,7 +163,7 @@ namespace armarx
{
const std::uint64_t pos = std::clamp(
static_cast<std::uint64_t>(pair.second * _driver->getMaxPosThumb()),
0, _driver->getMaxPosThumb());
0ul, _driver->getMaxPosThumb());
ARMARX_INFO << "set thumb " << pos;
_driver->sendThumbPWM(200, 2999, pos);
// fix until hw driver is fixed to handle multiple commands at the same time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment