diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-11 08:42:54 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-11 08:42:54 (GMT) |
| commit | bc01efe95ab26ba579f28d98811c46001f43c5ca (patch) | |
| tree | 65d46581de53d69ef1a24de46e8d909f3cdeac18 | |
| parent | f77dbcd679cb9970ae8d4568ed58260e0c04d48a (diff) | |
Use uint8_t as underlying type for Brightness controller
| -rw-r--r-- | src/components/brightness/BrightnessController.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/brightness/BrightnessController.h b/src/components/brightness/BrightnessController.h index 0d7ac2f..1ee5603 100644 --- a/src/components/brightness/BrightnessController.h +++ b/src/components/brightness/BrightnessController.h @@ -6,7 +6,7 @@ namespace Pinetime { namespace Controllers { class BrightnessController { public: - enum class Levels { Off, Low, Medium, High }; + enum class Levels : uint8_t { Off = 0, Low = 1, Medium = 2, High = 3 }; void Init(); void Set(Levels level); |
