Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
BLE Spam Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
n0xa committed Nov 12, 2023
1 parent cc9c392 commit f7e8b84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions m5stick-nemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,6 @@ void aj_adv(){
Serial.printf("%02x", packet[i]);
}
Serial.println("");

} else if (swiftPair) {
const char* display_name = generateRandomName();
Serial.printf("SwiftPair Advertisement: '%s' - ", display_name);
Expand All @@ -962,8 +961,10 @@ void aj_adv(){

i += display_name_len;
oAdvertisementData.addData(std::string((char *)packet, size));
free(packet);
free((void*)display_name);
} else {
Serial.printf("AppleJuice Advertisement: ", deviceType);
Serial.print("AppleJuice Advertisement: ");
if (deviceType >= 18){
oAdvertisementData.addData(std::string((char*)data, sizeof(AppleTVPair)));
} else {
Expand All @@ -982,7 +983,7 @@ void aj_adv(){
digitalWrite(M5_LED, HIGH); //LED OFF on Stick C Plus
}
if (digitalRead(M5_BUTTON_RST) == LOW) {
if (sourApple || swiftPair){
if (sourApple || swiftPair || maelstrom){
current_proc = 16;
btmenu_drawmenu();
} else {
Expand Down

0 comments on commit f7e8b84

Please sign in to comment.