Skip to content

Commit

Permalink
fix multiple definition of fault_status (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm authored Jan 9, 2023
1 parent dc780f8 commit e1805f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ typedef struct {

} board_t;

struct {
typedef struct {
uint8_t left_i2c : 1;
uint8_t left_angle : 1;
uint8_t right_i2c : 1;
uint8_t right_angle : 1;
} fault_status;
} fault_status_t;

#endif // DEFINES_H
1 change: 1 addition & 0 deletions board/drivers/angle_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extern I2C_HandleTypeDef hi2c1;
const uint8_t init_imu_regaddr[] = {0x76, 0x4c, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53};
const uint8_t init_imu_data[] = {0x00, 0x12, 0x2f, 0x26, 0x67, 0x04, 0x00, 0x00};

fault_status_t fault_status = {0};

void angle_sensor_read(uint16_t *sensor_angle) {

Expand Down

0 comments on commit e1805f6

Please sign in to comment.