Skip to content

Commit

Permalink
Update ams_as5048b.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sosandroid authored Jun 21, 2017
1 parent 56e0fc9 commit c32a473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ams_as5048b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ uint8_t AMS_AS5048B::addressRegR(void) {
/**************************************************************************/
void AMS_AS5048B::setZeroReg(void) {

AMS_AS5048B::zeroRegW((uint16_t) 0x00); //Issue closed by @MechatronicsWorkman and @oilXander. The last sequence avoids any offset for the new Zero position
uint16_t newZero = AMS_AS5048B::readReg16(AS5048B_ANGLMSB_REG);
AMS_AS5048B::zeroRegW((uint16_t) 0x00); //Issue closed by @MechatronicsWorkman
AMS_AS5048B::zeroRegW(newZero);
AMS_AS5048B::zeroRegW(newZero);
return;
}

Expand Down

0 comments on commit c32a473

Please sign in to comment.