Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
97ff69c3
Verified
Commit
97ff69c3
authored
Aug 24, 2019
by
Hauke Mehrtens
Committed by
Rahix
Aug 28, 2019
Browse files
BLE: UART: Remove unused read callback
Signed-off-by:
Hauke Mehrtens
<
hauke@hauke-m.de
>
parent
81a2cd20
Changes
1
Hide whitespace changes
Inline
Side-by-side
epicardium/ble/uart.c
View file @
97ff69c3
...
...
@@ -85,13 +85,12 @@ static const attsAttr_t uartAttrCfgList[] = {
.
permissions
=
ATTS_PERMIT_READ
,
},
/* UART tx value */
/* TODO: do we need ATTS_SET_READ_CBACK ? */
{
.
pUuid
=
attUartTxChUuid
,
.
pValue
=
uartTxCh_buf
,
.
pLen
=
&
uartTxCh_buf_len
,
.
maxLen
=
sizeof
(
uartTxCh_buf
),
.
settings
=
ATTS_SET_READ_CBACK
,
.
settings
=
0
,
.
permissions
=
ATTS_PERMIT_READ
|
ATTS_PERMIT_READ_ENC
|
ATTS_PERMIT_READ_AUTH
,
},
...
...
@@ -110,17 +109,6 @@ static const attsAttr_t uartAttrCfgList[] = {
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
(
dmConnId_t
connId
,
uint16_t
handle
,
...
...
@@ -197,7 +185,6 @@ void ble_uart_write(uint8_t *pValue, uint8_t len)
static
attsGroup_t
uartCfgGroup
=
{
.
pAttr
=
(
attsAttr_t
*
)
uartAttrCfgList
,
.
readCback
=
UARTReadCback
,
.
writeCback
=
UARTWriteCback
,
.
startHandle
=
UART_START_HDL
,
.
endHandle
=
UART_END_HDL
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment