comparison 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
comparison
equal deleted inserted replaced
570:855b3c5bb4b5 571:b24d42baa30d
953 why_big_sleep = BIG_SLEEP_DUE_TO_GAUGING; 953 why_big_sleep = BIG_SLEEP_DUE_TO_GAUGING;
954 else 954 else
955 why_big_sleep = BIG_SLEEP_DUE_TO_DSP_TRACES; 955 why_big_sleep = BIG_SLEEP_DUE_TO_DSP_TRACES;
956 } 956 }
957 } 957 }
958 if (l1s.pw_mgr.mode_authorized == BIG_SLEEP) 958 if (l1s.pw_mgr.mode_authorized == BIG_SLEEP ||
959 l1s.pw_mgr.mode_authorized == BIG_SMALL_SLEEP)
959 why_big_sleep = BIG_SLEEP_DUE_TO_SLEEP_MODE; 960 why_big_sleep = BIG_SLEEP_DUE_TO_SLEEP_MODE;
960 961
961 if ( ((l1s.pw_mgr.mode_authorized == BIG_SLEEP) && (sleep_mode >= FRAME_STOP)) || 962 if ( ((l1s.pw_mgr.mode_authorized == BIG_SLEEP) && (sleep_mode >= FRAME_STOP)) ||
963 ((l1s.pw_mgr.mode_authorized == BIG_SMALL_SLEEP) && (sleep_mode >= FRAME_STOP)) ||
962 ((l1s.pw_mgr.mode_authorized >= DEEP_SLEEP) && (sleep_mode == FRAME_STOP)) ) 964 ((l1s.pw_mgr.mode_authorized >= DEEP_SLEEP) && (sleep_mode == FRAME_STOP)) )
963 l1s.pw_mgr.sleep_performed = FRAME_STOP; 965 l1s.pw_mgr.sleep_performed = FRAME_STOP;
964 966
965 967
966 /* FreeCalypso change: check moved up and extended */ 968 /* FreeCalypso change: check moved up and extended */