mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
zephyr: init sm in posix-h4-zephyr and windows-h4-zephyr
This commit is contained in:
parent
24f8772682
commit
2cc827d492
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user