mirror of https://github.com/sfeakes/AqualinkD.git
Version 1.3.5
parent
303600f4df
commit
90b2c19d62
|
@ -63,6 +63,9 @@ Designed to mimic AqualinkRS6 All Button keypad, and just like the keypad you ca
|
|||
* http://aqualink.ip/simple.html <- (Simple opion if you don't like the above)
|
||||
* http://aqualink.ip/simulator.html <- (RS8 All Button Control Panel simulator)
|
||||
#<a name="release"></a>
|
||||
# Update in Release 1.3.5
|
||||
* Fixed SWG bug showing off/0% every ~15 seconds (introduced in 1.3.3)
|
||||
* PDA updates for freeze protect / SWG & general speed increase.
|
||||
## Update in Release 1.3.4 (a)
|
||||
* Logging changes.
|
||||
* Fix issues in programming mode.
|
||||
|
|
14
aqualinkd.c
14
aqualinkd.c
|
@ -237,11 +237,13 @@ void processMessage(char *message)
|
|||
service_msg_count = 0;
|
||||
}
|
||||
|
||||
// If we have more than 20 messages without "SALT or AQUAPURE" assume SWG is off.
|
||||
if (_aqualink_data.ar_swg_status == SWG_STATUS_ON && swg_msg_count++ > 40) {
|
||||
printf("***************** Manually turned SWG off ************************\n");
|
||||
_aqualink_data.ar_swg_status = SWG_STATUS_OFF;
|
||||
swg_msg_count = 0;
|
||||
// If we have more than 40 messages without "SALT or AQUAPURE" assume SWG is off.
|
||||
if ( _config_parameters.read_all_devices == false ) {
|
||||
if (_aqualink_data.ar_swg_status == SWG_STATUS_ON && swg_msg_count++ > 40) {
|
||||
//printf("***************** Manually turned SWG off ************************\n");
|
||||
_aqualink_data.ar_swg_status = SWG_STATUS_OFF;
|
||||
swg_msg_count = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// If we have more than 10 messages without "FREE PROTECT ACTIVATED" assume it's off.
|
||||
|
@ -368,6 +370,7 @@ void processMessage(char *message)
|
|||
if (_aqualink_data.ar_swg_status == SWG_STATUS_OFF) {_aqualink_data.ar_swg_status = SWG_STATUS_ON;}
|
||||
swg_msg_count = 0;
|
||||
//logMessage(LOG_DEBUG, "*** '%s' ***\n", msg);
|
||||
//logMessage(LOG_DEBUG, "SWG set to %d due to message from control panel\n", _aqualink_data.swg_percent);
|
||||
}
|
||||
else if (strncasecmp(msg, MSG_SWG_PPM, MSG_SWG_PPM_LEN) == 0)
|
||||
{
|
||||
|
@ -1192,6 +1195,7 @@ void main_loop()
|
|||
// Only read message from controller to SWG to set SWG Percent if we are not programming, as we might be changing this
|
||||
_aqualink_data.swg_percent = (int)packet_buffer[4];
|
||||
changed = true;
|
||||
//logMessage(LOG_DEBUG, "SWG set to %d due to packet from control panel to SWG\n", _aqualink_data.swg_percent);
|
||||
//logMessage(LOG_DEBUG, "Read SWG Percent %d from ID 0x%02hhx\n", _aqualink_data.swg_percent, SWG_DEV_ID);
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue