Skip to content

Commit

Permalink
Check key and use it to turn on/off push
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Mar 4, 2020
1 parent f36b3e4 commit 99166e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bftarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ BFTarget* BFTarget::getInstance() {

bool BFTarget::push() {
Log.verbose(F("Triggered %s push." CR), single->target->target.name);
single->target->target.enabled = (String(single->config->bfkey).length() > 3); // Unique to BF Target
LCBUrl lcburl;
if (single->target->apiName.enabled) {
if (single->target->target.enabled) {
if (lcburl.setUrl(String(single->target->url))) {
IPAddress resolvedIP = resolveHost(lcburl.getHost().c_str());
if (resolvedIP == INADDR_NONE) {
Expand Down

0 comments on commit 99166e9

Please sign in to comment.