Convert IMU to IRQ for rotation
This moves the rotation detection to use the IRQ2 line. Fixes #44
This commit is contained in:
@@ -414,10 +414,7 @@ void DrawUI() {
|
||||
static uint16_t lastSolderingDrawnTemp2 = 0;
|
||||
static uint8_t settingsLongTestScrollPos = 0;
|
||||
uint16_t temp = readIronTemp(0, 0, 0xFFFF);
|
||||
if (systemSettings.OrientationMode == 2) {
|
||||
//Automatic mode
|
||||
OLED_SetOrientation(!getOrientation());
|
||||
}
|
||||
|
||||
switch (operatingMode) {
|
||||
case STARTUP:
|
||||
//We are chilling in the idle mode
|
||||
|
||||
Reference in New Issue
Block a user