Simplify I2C initalisation

This commit is contained in:
Ben V. Brown
2020-09-18 19:50:50 +10:00
parent 65ae7c8b13
commit f374787564
8 changed files with 120 additions and 84 deletions

View File

@@ -29,8 +29,7 @@ public:
else
val = 3;
return static_cast<Orientation>(val);
#endif
#ifdef MODEL_TS100
#else
return static_cast<Orientation>((FRToSI2C::I2C_RegisterRead(LIS2DH_I2C_ADDRESS,LIS_INT2_SRC) >> 2) - 1);
#endif
}