Browse Source

Only set the output in trans.sink when not min pwr

When we receive a GotoMin message, we immediately go to lower power
before entering the PE_SRC_Transition_Sink state.  Therefore, the call
to pdb_dpm_output_set was redundant in this case.  Now the call isn't
made in this case, removing the redundancy.  This also leads somewhat
into the design of the new library.
Clara Hobbs 7 years ago
parent
commit
9ee738b04c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/policy_engine.c

+ 3
- 1
src/policy_engine.c View File

250
             explicit_contract = true;
250
             explicit_contract = true;
251
 
251
 
252
             /* Set the output appropriately */
252
             /* Set the output appropriately */
253
-            pdb_dpm_output_set(capability_match && !min_power);
253
+            if (!min_power) {
254
+                pdb_dpm_output_set(capability_match);
255
+            }
254
 
256
 
255
             chPoolFree(&pdb_msg_pool, policy_engine_message);
257
             chPoolFree(&pdb_msg_pool, policy_engine_message);
256
             policy_engine_message = NULL;
258
             policy_engine_message = NULL;

Loading…
Cancel
Save