mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Flip the other way
This commit is contained in:
@@ -18,12 +18,10 @@ public:
|
|||||||
//1 = rh, 2,=lh, 8=flat
|
//1 = rh, 2,=lh, 8=flat
|
||||||
static Orientation getOrientation() {
|
static Orientation getOrientation() {
|
||||||
uint8_t val = ((FRToSI2C::I2C_RegisterRead(SC7A20_ADDRESS, SC7A20_INT2_SOURCE) >> 2) - 1);
|
uint8_t val = ((FRToSI2C::I2C_RegisterRead(SC7A20_ADDRESS, SC7A20_INT2_SOURCE) >> 2) - 1);
|
||||||
if (val == 8)
|
if (val == 1)
|
||||||
val = 3;
|
|
||||||
else if (val == 1)
|
|
||||||
val = 1;
|
|
||||||
else if (val == 2)
|
|
||||||
val = 0;
|
val = 0;
|
||||||
|
else if (val == 0)
|
||||||
|
val = 1;
|
||||||
else
|
else
|
||||||
val = 3;
|
val = 3;
|
||||||
return static_cast<Orientation>(val);
|
return static_cast<Orientation>(val);
|
||||||
|
|||||||
Reference in New Issue
Block a user