diff src/cs/layer1/cfile/l1_pwmgr.c @ 571:b24d42baa30d

BIG_SMALL_SLEEP mode implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 12 Jan 2019 23:03:06 +0000
parents dc1e0a1c100f
children
line wrap: on
line diff
--- a/src/cs/layer1/cfile/l1_pwmgr.c	Sat Jan 12 22:53:46 2019 +0000
+++ b/src/cs/layer1/cfile/l1_pwmgr.c	Sat Jan 12 23:03:06 2019 +0000
@@ -955,10 +955,12 @@
              why_big_sleep = BIG_SLEEP_DUE_TO_DSP_TRACES;
          }
       }
-      if (l1s.pw_mgr.mode_authorized == BIG_SLEEP)
+      if (l1s.pw_mgr.mode_authorized == BIG_SLEEP ||
+          l1s.pw_mgr.mode_authorized == BIG_SMALL_SLEEP)
         why_big_sleep = BIG_SLEEP_DUE_TO_SLEEP_MODE;
 
       if ( ((l1s.pw_mgr.mode_authorized == BIG_SLEEP) && (sleep_mode >= FRAME_STOP)) ||
+           ((l1s.pw_mgr.mode_authorized == BIG_SMALL_SLEEP) && (sleep_mode >= FRAME_STOP)) ||
            ((l1s.pw_mgr.mode_authorized >= DEEP_SLEEP) && (sleep_mode == FRAME_STOP)) )
         l1s.pw_mgr.sleep_performed = FRAME_STOP;