zephyr: init sm in posix-h4-zephyr and windows-h4-zephyr

This commit is contained in:
Matthias Ringwald 2021-02-09 12:19:08 +01:00
parent 24f8772682
commit 2cc827d492
2 changed files with 7 additions and 1 deletions

View File

@ -144,7 +144,7 @@ int main(int argc, const char * argv[]){
printf("Packet Log: %s\n", pklg_path);
// pick serial port
config.device_name = "/dev/tty.usbmodem14514421"; // PCA10040 nRF52832
config.device_name = "/dev/tty.usbmodem0006830491191"; // PCA10056 nRF52840
// accept path from command line
if (argc >= 3 && strcmp(argv[1], "-u") == 0){
@ -170,6 +170,9 @@ int main(int argc, const char * argv[]){
// setup app
btstack_main(argc, argv);
// sm required to setup static random Bluetooth address
sm_init();
// go
btstack_run_loop_execute();

View File

@ -173,6 +173,9 @@ int main(int argc, const char * argv[]){
// setup app
btstack_main(argc, argv);
// sm required to setup static random Bluetooth address
sm_init();
// go
btstack_run_loop_execute();