Skip to content

Commit

Permalink
#65: SWG percentage setting not working for PDA
Browse files Browse the repository at this point in the history
  • Loading branch information
ballle98 committed Jun 6, 2022
1 parent 124c4b7 commit 36fafbd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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);
Expand Down

0 comments on commit 36fafbd

Please sign in to comment.