Skip to content

Commit 8f2c2f4

Browse files
committed
device conf not saved always
1 parent a292a60 commit 8f2c2f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/eez/apps/psu/persist_conf.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@ void enableOutputProtectionCouple(bool enable) {
791791

792792
devConf.flags.outputProtectionCouple = outputProtectionCouple;
793793

794+
saveDevice();
795+
794796
if (devConf.flags.outputProtectionCouple) {
795797
event_queue::pushEvent(event_queue::EVENT_INFO_OUTPUT_PROTECTION_COUPLED);
796798
} else {
@@ -811,6 +813,8 @@ void enableShutdownWhenProtectionTripped(bool enable) {
811813

812814
devConf.flags.shutdownWhenProtectionTripped = shutdownWhenProtectionTripped;
813815

816+
saveDevice();
817+
814818
if (devConf.flags.shutdownWhenProtectionTripped) {
815819
event_queue::pushEvent(
816820
event_queue::EVENT_INFO_SHUTDOWN_WHEN_PROTECTION_TRIPPED_ENABLED);
@@ -833,6 +837,8 @@ void enableForceDisablingAllOutputsOnPowerUp(bool enable) {
833837

834838
devConf.flags.forceDisablingAllOutputsOnPowerUp = forceDisablingAllOutputsOnPowerUp;
835839

840+
saveDevice();
841+
836842
if (devConf.flags.forceDisablingAllOutputsOnPowerUp) {
837843
event_queue::pushEvent(
838844
event_queue::EVENT_INFO_FORCE_DISABLING_ALL_OUTPUTS_ON_POWERUP_ENABLED);
@@ -857,6 +863,8 @@ void lockFrontPanel(bool lock) {
857863

858864
devConf.flags.isFrontPanelLocked = isFrontPanelLocked;
859865

866+
saveDevice();
867+
860868
if (devConf.flags.isFrontPanelLocked) {
861869
event_queue::pushEvent(event_queue::EVENT_INFO_FRONT_PANEL_LOCKED);
862870
} else {

0 commit comments

Comments
 (0)