Add 2 second pre-dim and bugfix blank timer
2 second predim code courtesy of bigbiff
Change-Id: I052ac422f78dc82c05f58c188587534b800b935a
diff --git a/gui/blanktimer.hpp b/gui/blanktimer.hpp
index 4135635..2d83c4d 100644
--- a/gui/blanktimer.hpp
+++ b/gui/blanktimer.hpp
@@ -32,8 +32,7 @@
void setTime(int newtime);
private:
- void setBlank(int blank);
- int getBlank(void);
+ void setConBlank(int blank);
void setTimer(void);
timespec getTimer(void);
int getBrightness(void);
@@ -42,13 +41,12 @@
int setClockTimer(void);
typedef int (blanktimer::*ThreadPtr)(void);
typedef void* (*PThreadPtr)(void*);
- pthread_mutex_t blankmutex;
+ pthread_mutex_t conblankmutex;
pthread_mutex_t timermutex;
int conblank;
timespec btimer;
unsigned long long sleepTimer;
int orig_brightness;
- int blanked;
};
extern blanktimer blankTimer;