Skip to content

Commit

Permalink
Tidy up naming
Browse files Browse the repository at this point in the history
  • Loading branch information
davgibbs committed Aug 12, 2022
1 parent 29d958f commit 270fcff
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions Adafruit_BNO055.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,26 +159,12 @@ void Adafruit_BNO055::setMode(adafruit_bno055_opmode_t mode) {
}

/*!
* @brief Gets the current operating mode of the chip
* @param mode
* mode values
* [OPERATION_MODE_CONFIG,
* OPERATION_MODE_ACCONLY,
* OPERATION_MODE_MAGONLY,
* OPERATION_MODE_GYRONLY,
* OPERATION_MODE_ACCMAG,
* OPERATION_MODE_ACCGYRO,
* OPERATION_MODE_MAGGYRO,
* OPERATION_MODE_AMG,
* OPERATION_MODE_IMUPLUS,
* OPERATION_MODE_COMPASS,
* OPERATION_MODE_M4G,
* OPERATION_MODE_NDOF_FMC_OFF,
* OPERATION_MODE_NDOF]
* @brief Gets the current operating mode of the chip
* @return operating_mode
*/
uint8_t Adafruit_BNO055::getMode() {
uint8_t _my_mode_return = (uint8_t)read8(BNO055_OPR_MODE_ADDR);
return _my_mode_return;
uint8_t operating_mode = read8(BNO055_OPR_MODE_ADDR);
return operating_mode;
}

/*!
Expand Down

0 comments on commit 270fcff

Please sign in to comment.