Commit 6da3019
committed
Jira 896, BLE scan withDuplicates logic inversion, git 476
Bug fixed:
This feature was implemented in PR arduino#457, merged, and released
in Deneb.RC1. However, it was discovered that the logic was
inverted and was report as Git issue arduino#476. BLE scan() and
input parameter withDuplicates is true means reporting all
Peripherals detected regardless how many times it was reported.
Code mods:
1. libraries/CurieBLE/src/BLEDevice.cpp:
- In startScan, calls the correct routine to scan for all
Peripherals if withDuplicates is true. Otherwise,
just scan for new ones.
2. libraries/CurieBLE/src/BLEDevice.h:
- Prototyping.
3. libraries/CurieBLE/src/internal/BLEDeviceManager.h,
libraries/CurieBLE/src/internal/BLEDeviceManager.cpp
- Modified header comment to reflect the input parameter
withDuplictes correct meaning.
- Default the input parameter, withDupilcates, as true.
- And, consequently, eliminated some redundant methods.1 parent 6f4f579 commit 6da3019
File tree
4 files changed
+43
-72
lines changed- libraries/CurieBLE/src
- internal
4 files changed
+43
-72
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 254 | | |
261 | 255 | | |
262 | 256 | | |
263 | 257 | | |
264 | 258 | | |
265 | 259 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 260 | | |
272 | 261 | | |
273 | 262 | | |
274 | 263 | | |
275 | 264 | | |
276 | 265 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | 266 | | |
283 | 267 | | |
284 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
| 365 | + | |
365 | 366 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 367 | + | |
| 368 | + | |
391 | 369 | | |
392 | 370 | | |
393 | 371 | | |
394 | | - | |
395 | | - | |
| 372 | + | |
| 373 | + | |
396 | 374 | | |
397 | | - | |
| 375 | + | |
398 | 376 | | |
399 | 377 | | |
400 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
401 | 381 | | |
402 | 382 | | |
403 | 383 | | |
404 | | - | |
405 | | - | |
| 384 | + | |
| 385 | + | |
406 | 386 | | |
407 | 387 | | |
408 | 388 | | |
409 | | - | |
410 | | - | |
| 389 | + | |
| 390 | + | |
411 | 391 | | |
412 | | - | |
| 392 | + | |
413 | 393 | | |
414 | 394 | | |
415 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
416 | 398 | | |
417 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
418 | 403 | | |
419 | 404 | | |
420 | 405 | | |
421 | | - | |
| 406 | + | |
| 407 | + | |
422 | 408 | | |
423 | | - | |
| 409 | + | |
424 | 410 | | |
425 | 411 | | |
426 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
427 | 415 | | |
428 | | - | |
| 416 | + | |
429 | 417 | | |
430 | | - | |
431 | | - | |
| 418 | + | |
| 419 | + | |
432 | 420 | | |
433 | 421 | | |
434 | 422 | | |
435 | | - | |
436 | | - | |
| 423 | + | |
| 424 | + | |
437 | 425 | | |
438 | | - | |
439 | | - | |
440 | 426 | | |
| 427 | + | |
441 | 428 | | |
442 | 429 | | |
443 | 430 | | |
| |||
679 | 666 | | |
680 | 667 | | |
681 | 668 | | |
682 | | - | |
| 669 | + | |
| 670 | + | |
683 | 671 | | |
684 | 672 | | |
685 | 673 | | |
686 | 674 | | |
687 | 675 | | |
688 | 676 | | |
689 | | - | |
690 | | - | |
| 677 | + | |
691 | 678 | | |
692 | 679 | | |
693 | 680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | | - | |
1100 | | - | |
| 1099 | + | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
0 commit comments