Skip to content

Commit f591da1

Browse files
committed
- correct some warnings
1 parent da21712 commit f591da1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/BLEPeripheral.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ void BLEPeripheral::begin() {
7272
unsigned char advertisementDataSize = 0;
7373

7474
BLEEirData advertisementData[3];
75-
BLEEirData scanData = { 0 };
75+
BLEEirData scanData;
76+
77+
scanData.length = 0;
7678

7779
unsigned char remainingAdvertisementDataLength = BLE_ADVERTISEMENT_DATA_MAX_VALUE_LENGTH + 2;
7880
if (this->_serviceSolicitationUuid){

src/nRF51822.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ uint32_t sd_ble_gatts_value_set(uint16_t handle, uint16_t offset, uint16_t* cons
4646
nRF51822::nRF51822() :
4747
BLEDevice(),
4848

49-
_txBufferCount(0),
50-
5149
_advDataLen(0),
5250
_broadcastCharacteristic(NULL),
5351

5452
_connectionHandle(BLE_CONN_HANDLE_INVALID),
5553

54+
_txBufferCount(0),
55+
5656
_numLocalCharacteristics(0),
5757
_localCharacteristicInfo(NULL),
5858

0 commit comments

Comments
 (0)