commit | 49b8ec4924bfde34e9ae6f65d04ba7d47f2bc71e | [log] [tgz] |
---|---|---|
author | Brandon Wyman <bjwyman@gmail.com> | Wed Apr 20 21:18:33 2022 +0000 |
committer | Brandon Wyman <bjwyman@gmail.com> | Thu Apr 28 21:42:20 2022 +0000 |
tree | 0d9a24877f4b516d3aca264749cc012d1f25c291 | |
parent | 18a24d92c040f8a6de5b7d6ee9c46ebd80342692 [diff] |
psu-ng: Add syncHistory for power state on When the power state changes to on, we should synchronize the power supply input history data. Change-Id: I2656b371583583b45c9f511c747404b57d1ec7eb Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
diff --git a/phosphor-power-supply/psu_manager.cpp b/phosphor-power-supply/psu_manager.cpp index d7cfdfc..351d2d3 100644 --- a/phosphor-power-supply/psu_manager.cpp +++ b/phosphor-power-supply/psu_manager.cpp
@@ -364,6 +364,7 @@ powerOn = true; validationTimer->restartOnce(validationTimeout); clearFaults(); + syncHistory(); setPowerConfigGPIO(); } else