休眠时间增加休眠20分钟选项

This commit is contained in:
yangjiaxuan 2023-07-25 15:49:28 +08:00
parent f1a595dac1
commit b489122048
2 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,7 @@ enum
SLEEP_TIME_0MIN = 0, SLEEP_TIME_0MIN = 0,
SLEEP_TIME_5MIN, SLEEP_TIME_5MIN,
SLEEP_TIME_10MIN, SLEEP_TIME_10MIN,
SLEEP_TIME_20MIN,
SLEEP_TIME_30MIN, SLEEP_TIME_30MIN,
SLEEP_TIME_60MIN, SLEEP_TIME_60MIN,
SLEEP_TIME_120MIN, SLEEP_TIME_120MIN,

View File

@ -4009,6 +4009,9 @@ int hg_scanner::device_io_control(unsigned long code, void* data, unsigned* len)
case SLEEP_TIME_10MIN: case SLEEP_TIME_10MIN:
val = 10; val = 10;
break; break;
case SLEEP_TIME_20MIN:
val = 20;
break;
case SLEEP_TIME_30MIN: case SLEEP_TIME_30MIN:
val = 30; val = 30;
break; break;