Skip to content

Commit 403366e

Browse files
committedMay 31, 2023
PureSpaIO::setJetOn(): fix checking jet status
1 parent 2f44947 commit 403366e

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed
 

‎PureSpaIO.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ void PureSpaIO::setHeaterOn(bool on)
531531

532532
void PureSpaIO::setJetOn(bool on)
533533
{
534-
if (on ^ (isDisinfectionOn() == true))
534+
if (on ^ (isJetOn() == true))
535535
{
536536
pressButton(buttons.toggleJet);
537537
}

‎common.h

+22-22
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232

3333
// select Intex PureSpa model by commenting in the desired variant
3434
//#define MODEL_SB_H20
35-
#define MODEL_SJB_HS
35+
//#define MODEL_SJB_HS
3636

3737
//#define SERIAL_DEBUG
3838

3939
namespace CONFIG
4040
{
41-
const char WIFI_VERSION[] = "1.0.3.2"; // 30.05.2023
41+
const char WIFI_VERSION[] = "1.0.3.3"; // 31.05.2023
4242

4343
// WiFi parameters
4444
const unsigned long WIFI_MAX_DISCONNECT_DURATION = 900000; // [ms] 5 min until reboot
@@ -69,32 +69,32 @@ namespace CONFIG_TAG
6969
namespace MQTT_TOPIC
7070
{
7171
// publish
72-
const char BUBBLE[] = "pool/bubble";
72+
const char BUBBLE[] = "pool/bubble";
7373
const char DISINFECTION[] = "pool/disinfection"; // SJB-HS only
74-
const char ERROR[] = "pool/error";
75-
const char FILTER[] = "pool/filter";
76-
const char HEATER[] = "pool/heater";
74+
const char ERROR[] = "pool/error";
75+
const char FILTER[] = "pool/filter";
76+
const char HEATER[] = "pool/heater";
7777
const char JET[] = "pool/jet"; // SJB-HS only
78-
const char MODEL[] = "pool/model";
79-
const char POWER[] = "pool/power";
80-
const char WATER_ACT[] = "pool/water/tempAct";
81-
const char WATER_SET[] = "pool/water/tempSet";
82-
const char VERSION[] = "wifi/version";
83-
const char IP[] = "wifi/ip";
84-
const char RSSI[] = "wifi/rssi";
85-
const char WIFI_TEMP[] = "wifi/temp";
86-
const char STATE[] = "wifi/state";
87-
const char OTA[] = "wifi/update";
78+
const char MODEL[] = "pool/model";
79+
const char POWER[] = "pool/power";
80+
const char WATER_ACT[] = "pool/water/tempAct";
81+
const char WATER_SET[] = "pool/water/tempSet";
82+
const char VERSION[] = "wifi/version";
83+
const char IP[] = "wifi/ip";
84+
const char RSSI[] = "wifi/rssi";
85+
const char WIFI_TEMP[] = "wifi/temp";
86+
const char STATE[] = "wifi/state";
87+
const char OTA[] = "wifi/update";
8888

8989
// subscribe
90-
const char CMD_BUBBLE[] = "pool/command/bubble";
90+
const char CMD_BUBBLE[] = "pool/command/bubble";
9191
const char CMD_DISINFECTION[] = "pool/command/disinfection"; // SJB-HS only
92-
const char CMD_FILTER[] = "pool/command/filter";
93-
const char CMD_HEATER[] = "pool/command/heater";
92+
const char CMD_FILTER[] = "pool/command/filter";
93+
const char CMD_HEATER[] = "pool/command/heater";
9494
const char CMD_JET[] = "pool/command/jet"; // SJB-HS only
95-
const char CMD_POWER[] = "pool/command/power";
96-
const char CMD_WATER[] = "pool/command/water/tempSet";
97-
const char CMD_OTA[] = "wifi/command/update";
95+
const char CMD_POWER[] = "pool/command/power";
96+
const char CMD_WATER[] = "pool/command/water/tempSet";
97+
const char CMD_OTA[] = "wifi/command/update";
9898
}
9999

100100
// Languages

0 commit comments

Comments
 (0)