Skip to content

Commit

Permalink
c++ support fix + typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Jun 17, 2022
1 parent 3154031 commit 1e6f52e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions inc/mpu925x.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ typedef enum mpu925x_magnetometer_bit_mode {
* @struct mpu925x_t mpu925x.h mpu925x.h
* @brief Main struct for MPU-925X driver.
*
* This structs includes sensor data, driver settings and master spesific
* This structs includes sensor data, driver settings and master specific
* handle, bus and delay function pointers.
* */
typedef struct mpu925x_t {
Expand Down Expand Up @@ -139,7 +139,7 @@ typedef struct mpu925x_t {

/**
* @struct master_specific
* @brief Holds master spesific pointers.
* @brief Holds master specific pointers.
* */
struct master_specific {
uint8_t (*bus_read)(struct mpu925x_t *mpu925x, uint8_t slave_address, uint8_t reg, uint8_t *buffer, uint8_t size);
Expand Down Expand Up @@ -188,9 +188,6 @@ void mpu925x_set_magnetometer_bit_mode(mpu925x_t *mpu925x, mpu925x_magnetometer_

// C++ compatibility.
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#ifdef __cplusplus
}
#endif // __cplusplus

Expand Down

0 comments on commit 1e6f52e

Please sign in to comment.