File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ void loop() {
121
121
122
122
// this is our 'wait for incoming subscription packets' busy subloop
123
123
Adafruit_MQTT_Subscribe *subscription;
124
- while (subscription = mqtt.readSubscription (1000 )) {
124
+ while (( subscription = mqtt.readSubscription (1000 ) )) {
125
125
if (subscription == &onoffbutton) {
126
126
Serial.print (F (" Got: " ));
127
127
Serial.println ((char *)onoffbutton.lastread );
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ void loop() {
104
104
105
105
// this is our 'wait for incoming subscription packets' busy subloop
106
106
Adafruit_MQTT_Subscribe *subscription;
107
- while (subscription = mqtt.readSubscription (1000 )) {
107
+ while (( subscription = mqtt.readSubscription (1000 ) )) {
108
108
if (subscription == &onoffbutton) {
109
109
Serial.print (F (" Got: " ));
110
110
Serial.println ((char *)onoffbutton.lastread );
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ void loop() {
144
144
145
145
// this is our 'wait for incoming subscription packets' busy subloop
146
146
Adafruit_MQTT_Subscribe *subscription;
147
- while (subscription = mqtt.readSubscription (5000 )) {
147
+ while (( subscription = mqtt.readSubscription (5000 ) )) {
148
148
if (subscription == &onoffbutton) {
149
149
Serial.print (F (" Got: " ));
150
150
Serial.println ((char *)onoffbutton.lastread );
You can’t perform that action at this time.
0 commit comments