Fix guiDimLevel type

This commit is contained in:
fvanroie 2020-03-30 15:39:22 +02:00
parent 9f69e9a03b
commit 1e1db4c08c
2 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ void guiSetBacklight(bool lighton)
} }
} }
void guiSetDim(uint8_t level) void guiSetDim(int8_t level)
{ {
if(guiBacklightPin >= 0) { if(guiBacklightPin >= 0) {
guiDimLevel = level >= 0 ? level : 0; guiDimLevel = level >= 0 ? level : 0;

View File

@ -23,7 +23,7 @@ void guiStop(void);
void guiCalibrate(); void guiCalibrate();
void guiTakeScreenshot(const char * pFileName); void guiTakeScreenshot(const char * pFileName);
void guiSetDim(uint8_t level); void guiSetDim(int8_t level);
int8_t guiGetDim(void); int8_t guiGetDim(void);
void guiSetBacklight(bool lighton); void guiSetBacklight(bool lighton);
bool guiGetBacklight(); bool guiGetBacklight();