clean up warnings
This commit is contained in:
5 files changed
+9
-4
No files matched your search
@@ -346,7 +346,7 @@ bool BLEAdvertising::_start(uint16_t interval, uint16_t timeout)
|
||||
},
|
||||
.p_peer_addr = NULL , // Undirected advertisement
|
||||
.interval = interval , // advertising interval (in units of 0.625 ms)
|
||||
.duration = timeout*100 , // in 10-ms unit
|
||||
.duration = (uint16_t) (timeout*100), // in 10-ms unit
|
||||
|
||||
.max_adv_evts = 0, // TODO can be used for fast/slow mode
|
||||
.channel_mask = { 0, 0, 0, 0, 0 } , // 40 channel, set 1 to disable
|
||||
|
||||
@@ -144,7 +144,10 @@ uint8_t BLEDiscovery::discoverCharacteristic(uint16_t conn_handle, BLEClientChar
|
||||
// only discover CCCD descriptor
|
||||
if (disc_chr->chars[d].char_props.notify || disc_chr->chars[d].char_props.indicate )
|
||||
{
|
||||
ble_gattc_handle_range_t range = { disc_chr->chars[d].handle_value + 1, _hdl_range.end_handle };
|
||||
ble_gattc_handle_range_t range = {
|
||||
.start_handle = (uint16_t) (disc_chr->chars[d].handle_value + 1),
|
||||
.end_handle = _hdl_range.end_handle
|
||||
};
|
||||
|
||||
if ( range.start_handle <= range.end_handle )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user