From 36fafbd37b166d031b35045afca169e4d370380b Mon Sep 17 00:00:00 2001 From: Lee Ballard Date: Fri, 3 Jun 2022 16:44:06 -0500 Subject: [PATCH] ballle98/AqualinkD#65: SWG percentage setting not working for PDA --- pda.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pda.c b/pda.c index 8472c62..975762d 100644 --- a/pda.c +++ b/pda.c @@ -486,6 +486,11 @@ void process_pda_packet_msg_long_SWG(const char *msg) // PDA Line 2 = // PDA Line 3 = SET TO 100% + // PDA Line 0 = SET AquaPure + // PDA Line 1 = + // PDA Line 2 = + // PDA Line 3 = SET TO: 20% + // Dual Setpoint // PDA Line 0 = SET AquaPure // PDA Line 1 = @@ -497,6 +502,9 @@ void process_pda_packet_msg_long_SWG(const char *msg) if (strncasecmp(msg+3, "SET TO", 6) == 0) { setSWGpercent(_aqualink_data, atoi(msg + 10)); LOG(PDA_LOG,LOG_DEBUG, "swg_percent = %d\n", _aqualink_data->swg_percent); + } else if (strncasecmp(msg+5, "SET TO:", 7) == 0) { + setSWGpercent(_aqualink_data, atoi(msg + 12)); + LOG(PDA_LOG,LOG_DEBUG, "swg_percent = %d\n", _aqualink_data->swg_percent); } else if (_aqualink_data->aqbuttons[SPA_INDEX].led->state != OFF) { if (strncasecmp(msg+1, "SET SPA TO:", 11) == 0) { //_aqualink_data->swg_percent = atoi(msg + 13);