Skip to content

Commit af50c0f

Browse files
authored
Fix memory allocation.
The BLEDeviceEvent enum doesn't have 3 but 4 elements: See src/BLEPeripheral.h line 58 to 61.
1 parent 29b4b6d commit af50c0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BLEPeripheral.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class BLEPeripheral : public BLEDeviceEventListener,
173173

174174
BLECentral _central;
175175
BLEPeripheralEventHandler _eventHandlers[4];
176-
BLEDeviceEventHandler _deviceEvents[3];
176+
BLEDeviceEventHandler _deviceEvents[4];
177177

178178
BLEEirData advertisementData[3];
179179
BLEEirData scanData;

0 commit comments

Comments
 (0)