Skip to content

Commit

Permalink
Remove an useless multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentRevest committed May 11, 2014
1 parent 4ee62b4 commit 9ca5117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raspberry-server/Motors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ unsigned short Motors::getSpeed(unsigned char channel)

void Motors::setSpeed(unsigned char channel, unsigned short target)
{
libusb_control_transfer(device_handle, 0x40, 0x85, 1225 + target*4, channel, 0, 0, (ushort)5000);
libusb_control_transfer(device_handle, 0x40, 0x85, 1225 + target, channel, 0, 0, (ushort)5000);
speeds[channel] = target;
}

Expand Down

0 comments on commit 9ca5117

Please sign in to comment.