-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
See this code fragment:
Adafruit_IO_Arduino/src/AdafruitIO.cpp
Lines 154 to 159 in e2b69fd
if (_err_sub) { | |
// setup error sub | |
_err_sub = new Adafruit_MQTT_Subscribe(_mqtt, _err_topic); | |
_mqtt->subscribe(_err_sub); | |
_err_sub->setCallback(errorCallback); | |
} |
_err_sub
is only initialized if it's non-NULL, which is the opposite of what I'd expect.
Same for _throttle_sub
.
As an aside, this will never actually be executed, as both are initialized to 0
.
It doesn't look like this is the intended behavior of this code.
Metadata
Metadata
Assignees
Labels
No labels