Skip to content

Commit

Permalink
Update UPB driver to fix a bug that made the dew labels not saved and…
Browse files Browse the repository at this point in the history
… another one where autodew was not saved (#2173)
  • Loading branch information
grm authored Feb 26, 2025
1 parent b85fdd4 commit 81d60d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions drivers/auxiliary/pegasus_upb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1303,12 +1303,16 @@ bool PegasusUPB::saveConfigItems(FILE * fp)
WI::saveConfigItems(fp);

PowerLEDSP.save(fp);
AutoDewSP.save(fp);
if (version == UPB_V2)
if (version == UPB_V1) {
AutoDewSP.save(fp);
}
if (version == UPB_V2) {
IUSaveConfigSwitch(fp, &AutoDewV2SP);
AutoDewAggNP.save(fp);
}
FocuserSettingsNP.save(fp);
PowerControlsLabelsTP.save(fp);
DewControlsLabelsTP.apply();
DewControlsLabelsTP.save(fp);
USBControlsLabelsTP.save(fp);
return true;
}
Expand Down

0 comments on commit 81d60d1

Please sign in to comment.