Skip to content

Commit

Permalink
Resolve warnings-as-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZC committed Jan 23, 2023
1 parent 680a09f commit 8e5a9b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SparkFun_BNO080_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ boolean BNO080::beginSPI(uint8_t user_CSPin, uint8_t user_WAKPin, uint8_t user_I
if (receivePacket() == true)
{
if (shtpData[0] == SHTP_REPORT_PRODUCT_ID_RESPONSE)
{
if (_printDebug == true)
{
_debugPort->print(F("SW Version Major: 0x"));
Expand All @@ -155,6 +156,7 @@ boolean BNO080::beginSPI(uint8_t user_CSPin, uint8_t user_WAKPin, uint8_t user_I
_debugPort->println(SW_Version_Patch, HEX);
}
return (true);
}
}

return (false); //Something went wrong
Expand Down Expand Up @@ -476,7 +478,7 @@ float BNO080::getPitch()
dqy = dqy/norm;
dqz = dqz/norm;

float ysqr = dqy * dqy;
//float ysqr = dqy * dqy;

// pitch (y-axis rotation)
float t2 = +2.0 * (dqw * dqy - dqz * dqx);
Expand Down Expand Up @@ -1452,7 +1454,9 @@ void BNO080::sendCalibrateCommand(uint8_t thingToCalibrate)
shtpData[5] = 1;
}
else if (thingToCalibrate == CALIBRATE_STOP)
{
; //Do nothing, bytes are set to zero
}

//Make the internal calStatus variable non-zero (operation failed) so that user can test while we wait
calibrationStatus = 1;
Expand Down

0 comments on commit 8e5a9b8

Please sign in to comment.