From 81d60d1b4331b233d6f9d03b1a86611d0a617807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Klein?= Date: Wed, 26 Feb 2025 18:32:17 +0100 Subject: [PATCH] Update UPB driver to fix a bug that made the dew labels not saved and another one where autodew was not saved (#2173) --- drivers/auxiliary/pegasus_upb.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/auxiliary/pegasus_upb.cpp b/drivers/auxiliary/pegasus_upb.cpp index ed0128085e..2977a3e6f4 100644 --- a/drivers/auxiliary/pegasus_upb.cpp +++ b/drivers/auxiliary/pegasus_upb.cpp @@ -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; }