Fix for Failing to recover from pgood timeout
Fixing the failure in recovery from timeout which was
due to not informing back the timeout condition correctly.
Resolves openbmc/openbmc#1239
Change-Id: I1554c71eba134195be003a7fa5d5c98a35b51d05
Signed-off-by: Dhruvaraj S <dhruvaraj@in.ibm.com>
diff --git a/op-pwrctl/power_control_obj.c b/op-pwrctl/power_control_obj.c
index 60c9009..bbcf6e7 100644
--- a/op-pwrctl/power_control_obj.c
+++ b/op-pwrctl/power_control_obj.c
@@ -48,7 +48,7 @@
// set timeout to 0 so timeout doesn't happen again
control_power_set_pgood_timeout(control_power,0);
pgood_timeout_start = 0;
- return TRUE;
+ return FALSE;
}
uint8_t pgood_state;