From 96165a8541b33baace920e26f062b2e282d644c6 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Sat, 7 Jan 2023 21:23:15 +0100 Subject: Format header files In my PR updating clang-format, I forgot to also format the headers. --- src/components/gfx/Gfx.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/gfx') diff --git a/src/components/gfx/Gfx.h b/src/components/gfx/Gfx.h index 54c4a8b7..17c248f7 100644 --- a/src/components/gfx/Gfx.h +++ b/src/components/gfx/Gfx.h @@ -10,6 +10,7 @@ namespace Pinetime { namespace Drivers { class St7789; } + namespace Components { class Gfx : public Pinetime::Drivers::BufferProvider { public: @@ -33,9 +34,11 @@ namespace Pinetime { static constexpr uint8_t height = 240; enum class Action { None, FillRectangle, DrawChar }; + struct State { State() : busy {false}, action {Action::None}, remainingIterations {0}, currentIteration {0} { } + volatile bool busy; volatile Action action; volatile uint16_t remainingIterations; -- cgit v1.2.3-70-g09d2