Verified Commit 97ff69c3 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Rahix
Browse files

BLE: UART: Remove unused read callback



Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
parent 81a2cd20
...@@ -85,13 +85,12 @@ static const attsAttr_t uartAttrCfgList[] = { ...@@ -85,13 +85,12 @@ static const attsAttr_t uartAttrCfgList[] = {
.permissions = ATTS_PERMIT_READ, .permissions = ATTS_PERMIT_READ,
}, },
/* UART tx value */ /* UART tx value */
/* TODO: do we need ATTS_SET_READ_CBACK ? */
{ {
.pUuid = attUartTxChUuid, .pUuid = attUartTxChUuid,
.pValue = uartTxCh_buf, .pValue = uartTxCh_buf,
.pLen = &uartTxCh_buf_len, .pLen = &uartTxCh_buf_len,
.maxLen = sizeof(uartTxCh_buf), .maxLen = sizeof(uartTxCh_buf),
.settings = ATTS_SET_READ_CBACK, .settings = 0,
.permissions = ATTS_PERMIT_READ | ATTS_PERMIT_READ_ENC | .permissions = ATTS_PERMIT_READ | ATTS_PERMIT_READ_ENC |
ATTS_PERMIT_READ_AUTH, ATTS_PERMIT_READ_AUTH,
}, },
...@@ -110,17 +109,6 @@ static const attsAttr_t uartAttrCfgList[] = { ...@@ -110,17 +109,6 @@ static const attsAttr_t uartAttrCfgList[] = {
dmConnId_t active_connection = 0; dmConnId_t active_connection = 0;
static uint8_t UARTReadCback(
dmConnId_t connId,
uint16_t handle,
uint8_t operation,
uint16_t offset,
attsAttr_t *pAttr
) {
printf("read callback\n");
return ATT_SUCCESS;
}
static uint8_t UARTWriteCback( static uint8_t UARTWriteCback(
dmConnId_t connId, dmConnId_t connId,
uint16_t handle, uint16_t handle,
...@@ -197,7 +185,6 @@ void ble_uart_write(uint8_t *pValue, uint8_t len) ...@@ -197,7 +185,6 @@ void ble_uart_write(uint8_t *pValue, uint8_t len)
static attsGroup_t uartCfgGroup = { static attsGroup_t uartCfgGroup = {
.pAttr = (attsAttr_t *)uartAttrCfgList, .pAttr = (attsAttr_t *)uartAttrCfgList,
.readCback = UARTReadCback,
.writeCback = UARTWriteCback, .writeCback = UARTWriteCback,
.startHandle = UART_START_HDL, .startHandle = UART_START_HDL,
.endHandle = UART_END_HDL, .endHandle = UART_END_HDL,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment