Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/trikset/trikRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
yurii-litvinov committed Mar 11, 2016
2 parents 8227fa8 + 8c90338 commit 2ede716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trikControl/src/powerMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ void PowerMotor::powerOff()
void PowerMotor::setPeriod(int period)
{
mCurrentPeriod = period;
QByteArray command(3, '\0');
QByteArray command(4, '\0');
command[0] = static_cast<char>((mMspCommandNumber - 4) & 0xFF);
command[1] = static_cast<char>(period && 0xFF);
command[2] = static_cast<char>(period >> 8);
command[2] = static_cast<char>(period & 0xFF);
command[3] = static_cast<char>(period >> 8);
mCommunicator.send(command);
}

Expand Down

0 comments on commit 2ede716

Please sign in to comment.