Skip to content

Commit

Permalink
Merge pull request #61 from gsisinna/master
Browse files Browse the repository at this point in the history
Fix plot_enabled parameter check
  • Loading branch information
Nicogene authored May 23, 2022
2 parents 4f72f12 + 8c4297b commit 4ef3af9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/opticalEncoders-drift/opticalEncodersDrift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ bool OpticalEncodersDrift::setup(yarp::os::Property& property) {
cycles = property.find("cycles").asInt32();
ROBOTTESTINGFRAMEWORK_ASSERT_ERROR_IF_FALSE(cycles>=0,"invalid cycles");

if(property.check("plot_enabled"))
plot = property.find("plot").asBool();
else
plot = true;
plot = property.find("plot_enabled").asBool();

if(plot)
ROBOTTESTINGFRAMEWORK_TEST_REPORT("This test will run gnuplot utility at the end.");
Expand Down

0 comments on commit 4ef3af9

Please sign in to comment.