Fix indentation in Adafruit_MQTT::subscribe
This commit is contained in:
parent
6879df86f6
commit
564e87ff36
@ -180,13 +180,13 @@ bool Adafruit_MQTT::subscribe(Adafruit_MQTT_Subscribe *sub) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i==MAXSUBSCRIPTIONS) { // add to subscriptionlist
|
if (i==MAXSUBSCRIPTIONS) { // add to subscriptionlist
|
||||||
for (i=0; i<MAXSUBSCRIPTIONS; i++) {
|
for (i=0; i<MAXSUBSCRIPTIONS; i++) {
|
||||||
if (subscriptions[i] == 0) {
|
if (subscriptions[i] == 0) {
|
||||||
DEBUG_PRINT(F("Added sub ")); DEBUG_PRINTLN(i);
|
DEBUG_PRINT(F("Added sub ")); DEBUG_PRINTLN(i);
|
||||||
subscriptions[i] = sub;
|
subscriptions[i] = sub;
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (i==MAXSUBSCRIPTIONS) {
|
if (i==MAXSUBSCRIPTIONS) {
|
||||||
DEBUG_PRINTLN(F("no more subscription space :("));
|
DEBUG_PRINTLN(F("no more subscription space :("));
|
||||||
|
Loading…
Reference in New Issue
Block a user