1
0
forked from me/IronOS

More settings rework

This commit is contained in:
Ben V. Brown
2023-07-19 23:13:13 +10:00
parent 5120235e2e
commit b38a5396f0
6 changed files with 149 additions and 106 deletions

View File

@@ -18,6 +18,7 @@ extern "C" {
#include "Settings.h"
#include "TipThermoModel.h"
#include "Translation.h"
#include "bflb_platform.h"
#include "cmsis_os.h"
#include "configuration.h"
#include "history.hpp"
@@ -63,7 +64,7 @@ void guiRenderLoop(void) {
}
}
}
MSG("Run GUI %d - %d\r\n", (int)currentOperatingMode, (int)buttons);
// Dispatch button state to gui mode
OperatingMode newMode = currentOperatingMode;
switch (currentOperatingMode) {
@@ -144,6 +145,7 @@ void guiRenderLoop(void) {
OLED::useSecondaryFramebuffer(false);
context.transitionMode = TransitionAnimation::None; // Clear transition flag
}
MSG("Post GUI %d - %d\r\n", (int)currentOperatingMode, (int)buttons);
// Render done, draw it out
OLED::refresh();
}