diff options
author | Ben V. Brown <[email protected]> | 2021-01-17 09:27:41 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-17 09:27:41 +1100 |
commit | ad37c752cc4a59ee5ca8e22bce70a7078e1bd46f (patch) | |
tree | da327335a4591a54026d5609d7d7cd4517ef5d16 | |
parent | 2785813f58ecdbafa015bfa8c7e16c75dc205e2c (diff) | |
parent | 308eee40eec6fc5277e975e353f0b3b1c3d0dac1 (diff) | |
download | IronOS-ad37c752cc4a59ee5ca8e22bce70a7078e1bd46f.tar.gz IronOS-ad37c752cc4a59ee5ca8e22bce70a7078e1bd46f.zip |
Merge pull request #799 from Ralim/fix-bootlogo
Fix logo drawing swapped
-rwxr-xr-x | Translations/make_translation.py | 3 | ||||
-rw-r--r-- | workspace/TS100/Core/BSP/Miniware/Power.cpp | 1 | ||||
-rwxr-xr-x | workspace/TS100/Core/Drivers/OLED.cpp | 10 | ||||
-rwxr-xr-x | workspace/TS100/Core/Threads/GUIThread.cpp | 1 | ||||
-rw-r--r-- | workspace/TS100/Core/Threads/POWThread.cpp | 2 |
5 files changed, 7 insertions, 10 deletions
diff --git a/Translations/make_translation.py b/Translations/make_translation.py index 2d4135e8..38775ae6 100755 --- a/Translations/make_translation.py +++ b/Translations/make_translation.py @@ -80,9 +80,6 @@ def writeStart(f): """// WARNING: THIS FILE WAS AUTO GENERATED BY make_translation.py. PLEASE DO NOT EDIT.
#include "Translation.h"
-#ifndef LANG
-#define LANG_EN
-#endif
"""
)
)
diff --git a/workspace/TS100/Core/BSP/Miniware/Power.cpp b/workspace/TS100/Core/BSP/Miniware/Power.cpp index 7d3d28eb..95fc916a 100644 --- a/workspace/TS100/Core/BSP/Miniware/Power.cpp +++ b/workspace/TS100/Core/BSP/Miniware/Power.cpp @@ -28,7 +28,6 @@ void power_check() { uint8_t usb_pd_detect() { #ifdef POW_PD FUSB302_present = fusb302_detect(); - return FUSB302_present; #endif return false; diff --git a/workspace/TS100/Core/Drivers/OLED.cpp b/workspace/TS100/Core/Drivers/OLED.cpp index 948c248e..776aa7b5 100755 --- a/workspace/TS100/Core/Drivers/OLED.cpp +++ b/workspace/TS100/Core/Drivers/OLED.cpp @@ -391,15 +391,17 @@ void OLED::drawAreaSwapped(int16_t x, int8_t y, uint8_t wide, uint8_t height, co } if (y == 0) { -// Splat first line of data - for (uint8_t xx = visibleStart; xx < visibleEnd; xx ++) { + // Splat first line of data + for (uint8_t xx = visibleStart; xx < visibleEnd; xx += 2) { firstStripPtr[xx + x] = ptr[xx + 1]; + firstStripPtr[xx + x + 1] = ptr[xx]; } } if (y == 8 || height == 16) { -// Splat the second line - for (uint8_t xx = visibleStart; xx < visibleEnd; xx++) { + // Splat the second line + for (uint8_t xx = visibleStart; xx < visibleEnd; xx += 2) { secondStripPtr[x + xx] = ptr[xx + 1 + (height == 16 ? wide : 0)]; + secondStripPtr[x + xx + 1] = ptr[xx + (height == 16 ? wide : 0)]; } } } diff --git a/workspace/TS100/Core/Threads/GUIThread.cpp b/workspace/TS100/Core/Threads/GUIThread.cpp index ac662aa4..a5fc94e2 100755 --- a/workspace/TS100/Core/Threads/GUIThread.cpp +++ b/workspace/TS100/Core/Threads/GUIThread.cpp @@ -805,6 +805,7 @@ void startGUITask(void const *argument __unused) { ButtonState buttons = getButtonState(); if (buttons) ticks = xTaskGetTickCount(); // make timeout now so we will exit + OLED::refresh(); GUIDelay(); } diff --git a/workspace/TS100/Core/Threads/POWThread.cpp b/workspace/TS100/Core/Threads/POWThread.cpp index f87fed87..d48b54e9 100644 --- a/workspace/TS100/Core/Threads/POWThread.cpp +++ b/workspace/TS100/Core/Threads/POWThread.cpp @@ -16,8 +16,6 @@ // Small worker thread to handle power (mostly QC) related steps
-
-
void startPOWTask(void const *argument __unused) {
postRToSInit();
for (;;) {
|