aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2023-10-23 21:43:05 +0200
committerJF <JF002@users.noreply.github.com>2023-11-19 21:13:55 +0100
commit02af09d9430bef72f307d49bc215149415a180ea (patch)
treeb1b7d09e95ce8d9de08f64c56206f91c26e7f5c7 /src/components
parent63e0c4f4efb047f4f15601f7b08640c4b589de93 (diff)
Application selection at build time
Fix DisplayAppRecovery so it builds with -std=c++20.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/gfx/Gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/gfx/Gfx.cpp b/src/components/gfx/Gfx.cpp
index 3eaaa3fe..d3ef3d08 100644
--- a/src/components/gfx/Gfx.cpp
+++ b/src/components/gfx/Gfx.cpp
@@ -141,7 +141,7 @@ void Gfx::SetBackgroundColor(uint16_t color) {
bool Gfx::GetNextBuffer(uint8_t** data, size_t& size) {
if (!state.busy)
return false;
- state.remainingIterations--;
+ state.remainingIterations = state.remainingIterations-1;
if (state.remainingIterations == 0) {
state.busy = false;
NotifyEndOfTransfer(state.taskToNotify);
@@ -170,7 +170,7 @@ bool Gfx::GetNextBuffer(uint8_t** data, size_t& size) {
size = bytes_in_line * 8 * 2;
}
- state.currentIteration++;
+ state.currentIteration = state.currentIteration + 1;
return true;
}