Skip to content

Commit

Permalink
added BLEinit
Browse files Browse the repository at this point in the history
  • Loading branch information
pr3y committed May 12, 2024
1 parent a33f5ae commit 83f05b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ble_spam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ BLEAdvertising *pAdvertising;
** spams BLE from choice
**********************************************************************/
void aj_adv(int ble_choice){

BLEDevice::init("");
BLEServer *pServer = BLEDevice::createServer();
pAdvertising = pServer->getAdvertising();
BLEAdvertisementData oAdvertisementData = BLEAdvertisementData();

tft.fillScreen(TFT_BLACK);
bool rstOverride = true;
bool swiftPair;
Expand Down Expand Up @@ -419,6 +425,7 @@ void aj_adv(int ble_choice){
swiftPair = false;
maelstrom = false;
pAdvertising->stop(); // Bug that keeps advertising in the background. Oops.
BLEDevice::deinit();
delay(250);
}

Expand Down

0 comments on commit 83f05b5

Please sign in to comment.