Skip to content

Commit

Permalink
Add simple optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Bartow committed Oct 10, 2016
1 parent 722bad8 commit bc75151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/nRF_badge/data_collector/incl/ble_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ void BLEresume(ble_pauseReq_src source)
if(pauseRequest[src]) return; // if any pending pause requests, don't restart advertising
}
// If no pending pause requests, restart advertising.
setAdvData();
if (needAdvDataUpdate) setAdvData();
BLEstartAdvertising();
}

Expand Down

0 comments on commit bc75151

Please sign in to comment.