aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfirebie <[email protected]>2019-01-16 16:07:26 +0200
committerfirebie <[email protected]>2019-01-16 16:07:26 +0200
commit78e1a1b628fa0f1a1e4bb5c3ed3703f35d50b101 (patch)
tree6069ab37819571d35e45062f43ad6608fc21963f
parent9514d3a1db21da635ffd406ad5ee7e61a6870000 (diff)
downloadIronOS-78e1a1b628fa0f1a1e4bb5c3ed3703f35d50b101.tar.gz
IronOS-78e1a1b628fa0f1a1e4bb5c3ed3703f35d50b101.zip
Rotation fix
-rw-r--r--workspace/TS100/src/gui.cpp4
-rw-r--r--workspace/TS100/src/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/workspace/TS100/src/gui.cpp b/workspace/TS100/src/gui.cpp
index b9d7b3b1..4703b295 100644
--- a/workspace/TS100/src/gui.cpp
+++ b/workspace/TS100/src/gui.cpp
@@ -472,10 +472,10 @@ static void settings_setDisplayRotation(void) {
systemSettings.OrientationMode = systemSettings.OrientationMode % 3;
switch (systemSettings.OrientationMode) {
case 0:
- OLED::setRotation(true);
+ OLED::setRotation(false);
break;
case 1:
- OLED::setRotation(false);
+ OLED::setRotation(true);
break;
case 2:
// do nothing on auto
diff --git a/workspace/TS100/src/main.cpp b/workspace/TS100/src/main.cpp
index 7c84ebd2..14194e0d 100644
--- a/workspace/TS100/src/main.cpp
+++ b/workspace/TS100/src/main.cpp
@@ -770,7 +770,7 @@ void startGUITask(void const *argument __unused) {
bool buttonLockout = false;
bool tempOnDisplay = false;
getTipRawTemp(1); // reset filter
- OLED::setRotation(!(systemSettings.OrientationMode & 1));
+ OLED::setRotation(systemSettings.OrientationMode & 1);
uint32_t ticks = xTaskGetTickCount();
ticks += 400; // 4 seconds from now
while (xTaskGetTickCount() < ticks) {
@@ -1056,7 +1056,7 @@ void startMOVTask(void const *argument __unused) {
osDelay(250); // wait for accelerometer to stabilize
#endif
- OLED::setRotation(!(systemSettings.OrientationMode & 1));
+ OLED::setRotation(systemSettings.OrientationMode & 1);
lastMovementTime = 0;
int16_t datax[MOVFilter] = { 0 };
int16_t datay[MOVFilter] = { 0 };