BLE test
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGGap.cpp
- Revision:
- 158:1b92852cfb71
- Parent:
- 157:e27f00b5e251
- Child:
- 160:174387d53809
--- a/source/BlueNRGGap.cpp Wed Oct 28 14:21:09 2015 +0100 +++ b/source/BlueNRGGap.cpp Wed Oct 28 14:43:57 2015 +0100 @@ -1022,6 +1022,10 @@ _scanning = false; if(_connecting) { + // FIXME: We need to wait for a while before creating a connection + // due to BlueNRG process queue handling + Clock_Wait(100); + makeConnection(); } else { PRINTF("re-startRadioScan\n\r"); @@ -1058,6 +1062,7 @@ // FIXME: We need to wait for a while before creating a connection // due to BlueNRG process queue handling + // NOTE: this workaround causes a potential risk for an endless loop!!! Clock_Wait(100); }