Skip to content

Commit

Permalink
Merge pull request #373 from fabik111/fix-local-name-end
Browse files Browse the repository at this point in the history
Clear advertising data when BLE end is called
  • Loading branch information
facchinm authored Oct 25, 2024
2 parents 29bef40 + 910dd44 commit 30e2cac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/local/BLELocalDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ void BLELocalDevice::end()
digitalWrite(NINA_RESETN, LOW);
#elif defined(ARDUINO_PORTENTA_H7_M4) || defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_GIGA) || defined(ARDUINO_OPTA)
digitalWrite(BT_REG_ON, LOW);
#endif
#endif
_advertisingData.clear();
_scanResponseData.clear();
}

void BLELocalDevice::poll()
Expand Down

0 comments on commit 30e2cac

Please sign in to comment.