Skip to content

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
doudou committed Dec 6, 2019
1 parent 21a9f1e commit 3e67a72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tasks/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Task::~Task()
{
}



/// The following lines are template definitions for the various state machine
// hooks defined by Orocos::RTT. See Task.hpp for more detailed
// documentation about them.
Expand All @@ -37,8 +35,9 @@ bool Task::configureHook()

// This is MANDATORY and MUST be called after the setDriver but before you do
// anything with the driver
if (!TaskBase::configureHook())
if (!TaskBase::configureHook()) {
return false;
}

driver->setInterframeDelay(_modbus_interframe_delay.get());

Expand All @@ -64,8 +63,9 @@ bool Task::configureHook()

bool Task::startHook()
{
if (! TaskBase::startHook())
if (! TaskBase::startHook()) {
return false;
}

m_driver->enable();
m_last_temperature_update = Time();
Expand Down Expand Up @@ -129,7 +129,8 @@ void Task::updateHook()

TaskBase::updateHook();
}
void Task::processIO() {}
void Task::processIO() {
}
void Task::errorHook()
{
TaskBase::errorHook();
Expand Down

0 comments on commit 3e67a72

Please sign in to comment.