aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/Core/BSP/Miniware/Power.cpp
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2023-06-18 22:50:31 +1000
committerGitHub <[email protected]>2023-06-18 22:50:31 +1000
commitc6918093fb9fcbbd6687604e14fd9298aa0a4fc6 (patch)
tree1e4b561d115bd0e26eb9b839b84d748e91d3f691 /source/Core/BSP/Miniware/Power.cpp
parentd3d8e3d2d5dca26cec8824e6cbe67e771bf3c0cc (diff)
downloadIronOS-c6918093fb9fcbbd6687604e14fd9298aa0a4fc6.tar.gz
IronOS-c6918093fb9fcbbd6687604e14fd9298aa0a4fc6.zip
Larger OLED Support (#1713)
* Update header to declare full buffer size * Strip refactoring * Refactor the OLED scrolldown part 1 * High res capable scroll down * Allow button press to skip scroll * Bunch of Misc Fixups
Diffstat (limited to 'source/Core/BSP/Miniware/Power.cpp')
-rw-r--r--source/Core/BSP/Miniware/Power.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Core/BSP/Miniware/Power.cpp b/source/Core/BSP/Miniware/Power.cpp
index 423fe528..4e48b2a2 100644
--- a/source/Core/BSP/Miniware/Power.cpp
+++ b/source/Core/BSP/Miniware/Power.cpp
@@ -5,7 +5,7 @@
#include "Settings.h"
#include "USBPD.h"
#include "configuration.h"
-
+#include "stm32f1xx_hal.h"
void power_check() {
#ifdef POW_PD
// Cant start QC until either PD works or fails
@@ -27,7 +27,7 @@ bool getIsPoweredByDCIN() {
#endif
#ifdef MODEL_TS101
// TODO have to check what we are using
- return false;
+ return HAL_GPIO_ReadPin(DC_SELECT_GPIO_Port, DC_SELECT_Pin) == GPIO_PIN_SET;
#endif
#ifdef MODEL_TS100
return true;