Skip to content

Commit

Permalink
clear advertising data when BLE end is called
Browse files Browse the repository at this point in the history
  • Loading branch information
fabik111 committed Oct 24, 2024
1 parent 29bef40 commit 910dd44
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 910dd44

Please sign in to comment.