From 1e1db4c08c6186b77dfbdaffe8d6fe971df099d9 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Mon, 30 Mar 2020 15:39:22 +0200 Subject: [PATCH] Fix guiDimLevel type --- src/hasp_gui.cpp | 2 +- src/hasp_gui.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hasp_gui.cpp b/src/hasp_gui.cpp index 232f2c9e..c65783be 100644 --- a/src/hasp_gui.cpp +++ b/src/hasp_gui.cpp @@ -430,7 +430,7 @@ void guiSetBacklight(bool lighton) } } -void guiSetDim(uint8_t level) +void guiSetDim(int8_t level) { if(guiBacklightPin >= 0) { guiDimLevel = level >= 0 ? level : 0; diff --git a/src/hasp_gui.h b/src/hasp_gui.h index 56d7f864..547b1d0d 100644 --- a/src/hasp_gui.h +++ b/src/hasp_gui.h @@ -23,7 +23,7 @@ void guiStop(void); void guiCalibrate(); void guiTakeScreenshot(const char * pFileName); -void guiSetDim(uint8_t level); +void guiSetDim(int8_t level); int8_t guiGetDim(void); void guiSetBacklight(bool lighton); bool guiGetBacklight();