Skip to content

Commit

Permalink
Fixed the bug in the getAngleSpeed function
Browse files Browse the repository at this point in the history
  • Loading branch information
djaumann committed Apr 13, 2021
1 parent 6ddb728 commit b9919c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/TLE5012b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ errorTypes Tle5012b::getAngleSpeed(double &finalAngleSpeed)
}
errorTypes Tle5012b::getAngleSpeed(double &finalAngleSpeed, int16_t &rawSpeed, updTypes upd, safetyTypes safe)
{
int8_t numOfData = 0x5;
int8_t numOfData = 0x6;
uint16_t rawData[numOfData] = {};

errorTypes status = readMoreRegisters(reg.REG_ASPD + numOfData, rawData, upd, safe);
Expand Down

0 comments on commit b9919c9

Please sign in to comment.