|
@@ -127,14 +127,16 @@ namespace {
|
|
|
|
|
|
void setBrightness(){
|
|
|
|
|
|
- int dayLight = StoragePreferences::getInt(STORE_DAY_LIGHT,100);
|
|
|
+ BRIGHTNESSHELPER->setBrightness(100);
|
|
|
+
|
|
|
+ /*int dayLight = StoragePreferences::getInt(STORE_DAY_LIGHT,100);
|
|
|
int nightLight = StoragePreferences::getInt(STORE_NIGHT_LIGHT,10);
|
|
|
|
|
|
if (checkIsDay()){
|
|
|
BRIGHTNESSHELPER->setBrightness(dayLight);
|
|
|
} else {
|
|
|
BRIGHTNESSHELPER->setBrightness(nightLight);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -667,6 +669,10 @@ static void onUI_init(){
|
|
|
// sendProtocolTo(UART_TTYS3, (byte*)(sendMsg), strlen(sendMsg));
|
|
|
// }
|
|
|
|
|
|
+ //门口屏亮度设置
|
|
|
+ BRIGHTNESSHELPER->setBrightness(100);
|
|
|
+ LOGD("设置门口屏亮度100");
|
|
|
+
|
|
|
#if 0
|
|
|
std::thread backend([](){
|
|
|
while (true) {
|
|
@@ -985,13 +991,17 @@ static bool onUI_Timer(int id){
|
|
|
break;
|
|
|
|
|
|
case SLEEP_STRAT_TIME_HANDLE: { // 息屏
|
|
|
- if (isSleepTimerRegistered) {
|
|
|
+ //门口机不熄屏
|
|
|
+ isSleep = false;
|
|
|
+ BRIGHTNESSHELPER->screenOn();
|
|
|
+
|
|
|
+ /*if (isSleepTimerRegistered) {
|
|
|
isSleep = true;
|
|
|
BRIGHTNESSHELPER->screenOff();
|
|
|
} else { // 如果是false的话,就需要关闭定时器
|
|
|
isSleep = false;
|
|
|
BRIGHTNESSHELPER->screenOn();
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
break;
|
|
|
case SYS_RESTART_TIME_HANDLE: {
|