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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@
38
38
* ARRAY_SIZE
39
39
* ----------
40
40
* The numbers of peripherals tracked and sorted can be set via the
41
-
* ARRAY_SIZE macro.
41
+
* ARRAY_SIZE macro. Must be at least 2.
42
42
*
43
43
* TIMEOUT_MS
44
44
* ----------
@@ -69,8 +69,8 @@
69
69
#defineENABLE_TFT (0) // Set this to 1 to enable ILI9341 TFT display support
70
70
#defineENABLE_OLED (0) // Set this to 1 to enable SSD1306 128x32 OLED display support
71
71
72
-
#if (ARRAY_SIZE <= 0)
73
-
#error "ARRAY_SIZE must be a non-zero value"
72
+
#if (ARRAY_SIZE <= 1)
73
+
#error "ARRAY_SIZE must be at least 2"
74
74
#endif
75
75
#if (ENABLE_TFT) && (ENABLE_OLED)
76
76
#error "ENABLE_TFT and ENABLE_OLED can not both be set at the same time"
0 commit comments