mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Adjust interface for i2c to add requirement for device to be specified.
This commit is contained in:
parent
7a5b7060aa
commit
37e7b5ee4a
17 changed files with 104 additions and 133 deletions
|
@ -21,3 +21,7 @@ typedef struct mag_s {
|
|||
sensorInitFuncPtr init; // initialize function
|
||||
sensorReadFuncPtr read; // read 3 axis data function
|
||||
} mag_t;
|
||||
|
||||
#ifndef MAG_I2C_INSTANCE
|
||||
#define MAG_I2C_INSTANCE I2C_DEVICE
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue