Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthbdn committed Jan 20, 2023
1 parent 92159f1 commit 8286be1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions BLEAdvertising.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ void BLEAdvertising::updateAdvertising()

void BLEAdvertising::setGapName()
{

int len = sprintf(gapName, "%s", name.substr(0, NAME_MAX_SIZE).c_str());
uBit.display.scroll(gapName);

ble_gap_conn_sec_mode_t permissions;
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&permissions);
Expand All @@ -112,8 +110,6 @@ void BLEAdvertising::setGapName()
void BLEAdvertising::setData(std::string str){
dataLength = sprintf(data, "%s", str.substr(0, DATA_MAX_SIZE).c_str());

uBit.display.scroll(data);

updateAdvertising();
}

Expand Down

0 comments on commit 8286be1

Please sign in to comment.