Skip to content

Commit

Permalink
Avoid to use integer as default value of a boolean variable in RobotS…
Browse files Browse the repository at this point in the history
…kin.cpp

Co-authored-by: Stefano Dafarra <[email protected]>
  • Loading branch information
GiulioRomualdi and S-Dafarra committed Jan 19, 2023
1 parent 4ecb00d commit d4466b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/HapticGlove_module/src/RobotSkin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ bool RobotSkin::configure(const yarp::os::Searchable& config,
}

const bool connectToCalibratedSkin
= config.check("connect_to_calibrated_skin", yarp::os::Value(0)).asBool();
= config.check("connect_to_calibrated_skin", yarp::os::Value(false)).asBool();

if (connectToCalibratedSkin)
{
Expand Down

0 comments on commit d4466b0

Please sign in to comment.