Skip to content

Commit 8dc2b8e

Browse files
committed
Cleanup
1 parent 1388e50 commit 8dc2b8e

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

adapter_nrf528xx-full.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ import (
1717
"unsafe"
1818
)
1919

20-
// TODO: @rdnt cleanup
21-
//var (
22-
// dataLenParams = &C.ble_gap_data_length_params_t{}
23-
// dataLenLimitation = &C.ble_gap_data_length_limitation_t{}
24-
//)
25-
2620
func handleEvent() {
2721
id := eventBuf.header.evt_id
2822
switch {

adapter_sd.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@ func (a *Adapter) Enable() error {
125125
eventBufLen = C.uint16_t(unsafe.Sizeof(eventBuf))
126126
errCode := C.sd_ble_evt_get((*C.uint8_t)(unsafe.Pointer(&eventBuf)), &eventBufLen)
127127
if errCode != 0 {
128-
// TODO: @rdnt remove
129-
//if debug {
130-
// println("sd_ble_evt_get failed, err:", Error(errCode).Error())
131-
//}
132128
// Possible error conditions:
133129
// * NRF_ERROR_NOT_FOUND: no events left, break
134130
// * NRF_ERROR_DATA_SIZE: retry with a bigger data buffer

gap_nrf528xx-central.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,6 @@ func (a *Adapter) Connect(address Address, params ConnectionParams) (Device, err
182182
connectionAttempt.state.Set(0)
183183
connectionHandle := connectionAttempt.connectionHandle
184184

185-
// TODO @rdnt: move into exchangeMTU function
186-
//errCode = C.sd_ble_gattc_exchange_mtu_request(connectionHandle, C.uint16_t(a.cfg.Gatt.AttMtu))
187-
//if debug {
188-
// println("mtu requested, self:", a.cfg.Gatt.AttMtu, " err:", Error(errCode).Error())
189-
//}
190-
191185
return Device{
192186
connectionHandle: connectionHandle,
193187
}, nil

0 commit comments

Comments
 (0)