Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fleur
firmware
Commits
97ff69c3
Verified
Commit
97ff69c3
authored
5 years ago
by
Hauke Mehrtens
Committed by
rahix
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BLE: UART: Remove unused read callback
Signed-off-by:
Hauke Mehrtens
<
hauke@hauke-m.de
>
parent
81a2cd20
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/ble/uart.c
+1
-14
1 addition, 14 deletions
epicardium/ble/uart.c
with
1 addition
and
14 deletions
epicardium/ble/uart.c
+
1
−
14
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment