We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f985ea6 commit 7119889Copy full SHA for 7119889
src/utility/GAP.cpp
@@ -167,7 +167,8 @@ void GAPClass::stopAdvertise()
167
168
int GAPClass::scan(bool withDuplicates)
169
{
170
- HCI.leSetScanEnable(false, true);
+ //HCI.leSetScanEnable(false, true);
171
+ stopScan();
172
173
// active scan, 10 ms scan interval (N * 0.625), 10 ms scan window (N * 0.625), public own address type, no filter
174
if (HCI.leSetScanParameters(0x01, 0x0010, 0x0010, 0x00, 0x00) != 0) {
@@ -212,7 +213,8 @@ int GAPClass::scanForAddress(String address, bool withDuplicates)
212
213
214
void GAPClass::stopScan()
215
- HCI.leSetScanEnable(false, false);
216
+ //HCI.leSetScanEnable(false, false);
217
+ HCI.leSetScanEnable(false, true);
218
219
_scanning = false;
220
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments