Mercurial > public > ostc4
comparison Discovery/Src/base.c @ 807:9e2ebfc72e8c
Zusammenf?hren
author | heinrichsweikamp |
---|---|
date | Sat, 26 Aug 2023 13:37:06 +0200 |
parents | dd7ce655db26 |
children | 717b460294cd |
comparison
equal
deleted
inserted
replaced
806:ee3c0029ed34 | 807:9e2ebfc72e8c |
---|---|
1848 } | 1848 } |
1849 else | 1849 else |
1850 { | 1850 { |
1851 timeout_limit_Surface_in_seconds = settingsGetPointer()->timeoutSurfacemode; | 1851 timeout_limit_Surface_in_seconds = settingsGetPointer()->timeoutSurfacemode; |
1852 } | 1852 } |
1853 if(timeout_in_seconds >= timeout_limit_Surface_in_seconds) | 1853 if (timeout_in_seconds >= timeout_limit_Surface_in_seconds) { |
1854 { | 1854 if (t7_isTimerRunning(true)) { |
1855 gotoSleep(); | 1855 // Delay sleep until the timer has elapsed |
1856 timeout_in_seconds = timeout_limit_Surface_in_seconds - 1; | |
1857 } else { | |
1858 gotoSleep(); | |
1859 } | |
1856 } | 1860 } |
1857 break; | 1861 break; |
1858 case BaseMenu: | 1862 case BaseMenu: |
1859 if((status.line == 0) && ((timeout_in_seconds >= settingsGetPointer()->timeoutMenuSurface) || RequestModeChange)) | 1863 if((status.line == 0) && ((timeout_in_seconds >= settingsGetPointer()->timeoutMenuSurface) || RequestModeChange)) |
1860 { | 1864 { |