Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Apr 1, 2021
1 parent 1d3a011 commit 955289b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/src/system_cloud_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,9 @@ int sendApplicationDescription() {
}

void registerSystemSubscriptions() {
if (!Particle.subscribe("particle", systemEventHandler, MY_DEVICES) ||
!Particle.subscribe("spark", systemEventHandler, MY_DEVICES)) {
bool ok = Particle.subscribe("particle", systemEventHandler, MY_DEVICES);
ok = Particle.subscribe("spark", systemEventHandler, MY_DEVICES) && ok;
if (!ok) {
LOG(ERROR, "Particle.subscribe() failed");
}
}
Expand Down

0 comments on commit 955289b

Please sign in to comment.