You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/Bluefruit52Lib/examples/Projects/rssi_proximity/rssi_proximity_central/rssi_proximity_central.ino
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -649,6 +649,27 @@ void loop()
649
649
{
650
650
/* Toggle red LED every second */
651
651
digitalToggle(LED_RED);
652
-
652
+
653
+
/* Invalidate old results once per second in addition
654
+
* to the invalidation in the callback handler. */
655
+
/* ToDo: Update to use a mutex or semaphore since this
656
+
* can lead to list corruption as-is if the scann results
657
+
* callback is fired in the middle of the invalidation
658
+
* function. */
659
+
if (invalidateRecords())
660
+
{
661
+
/* The list was updated, print the new values */
662
+
printRecordList();
663
+
Serial.println("");
664
+
/* Display the device list on the TFT if available */
665
+
#if ENABLE_TFT
666
+
renderResultsToTFT();
667
+
#endif
668
+
/* Display the device list on the OLED if available */
0 commit comments