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
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Commits
cc8df6bc
Commit
cc8df6bc
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
chore(ble): Minor cleanup of printfs, dead code and obsolete comments
parent
c860e80b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!446
Initial MicroPython BLE support (GATTS)
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/ble/ble_main.c
+0
-2
0 additions, 2 deletions
epicardium/ble/ble_main.c
epicardium/ble/epic_att_api.c
+0
-7
0 additions, 7 deletions
epicardium/ble/epic_att_api.c
with
0 additions
and
9 deletions
epicardium/ble/ble_main.c
+
0
−
2
View file @
cc8df6bc
...
@@ -682,8 +682,6 @@ static void scannerScanReport(dmEvt_t *pMsg)
...
@@ -682,8 +682,6 @@ static void scannerScanReport(dmEvt_t *pMsg)
* \return None.
* \return None.
*/
*/
/*************************************************************************************************/
/*************************************************************************************************/
#define ATT_CONNECTION_OPENED 0x81
#define ATT_CONNECTION_CLOSED 0x82
static
void
bleProcMsg
(
bleMsg_t
*
pMsg
)
static
void
bleProcMsg
(
bleMsg_t
*
pMsg
)
{
{
hciLeConnCmplEvt_t
*
connOpen
;
hciLeConnCmplEvt_t
*
connOpen
;
...
...
This diff is collapsed.
Click to expand it.
epicardium/ble/epic_att_api.c
+
0
−
7
View file @
cc8df6bc
...
@@ -42,8 +42,6 @@ static uint8_t DynAttsWriteCback(
...
@@ -42,8 +42,6 @@ static uint8_t DynAttsWriteCback(
uint8_t
*
pValue
,
uint8_t
*
pValue
,
attsAttr_t
*
pAttr
attsAttr_t
*
pAttr
)
{
)
{
printf
(
"DynAttsWriteCback %d, %d, %d
\n
"
,
handle
,
len
,
offset
);
struct
epic_att_write
*
att_write
=
WsfBufAlloc
(
sizeof
(
*
att_write
));
struct
epic_att_write
*
att_write
=
WsfBufAlloc
(
sizeof
(
*
att_write
));
if
(
att_write
)
{
if
(
att_write
)
{
...
@@ -93,7 +91,6 @@ int epic_atts_dyn_create_service(
...
@@ -93,7 +91,6 @@ int epic_atts_dyn_create_service(
*
pSvcHandle
=
AttsDynCreateGroup
(
*
start_handle
,
end_handle
);
*
pSvcHandle
=
AttsDynCreateGroup
(
*
start_handle
,
end_handle
);
dyn_groups
[
next_dyn_group
++
]
=
*
pSvcHandle
;
dyn_groups
[
next_dyn_group
++
]
=
*
pSvcHandle
;
//AttsDynRegister(pSvcHandle, DynAttsReadCback, DynAttsWriteCback);
AttsDynRegister
(
*
pSvcHandle
,
NULL
,
DynAttsWriteCback
);
AttsDynRegister
(
*
pSvcHandle
,
NULL
,
DynAttsWriteCback
);
AttsDynAddAttr
(
AttsDynAddAttr
(
...
@@ -246,8 +243,6 @@ int epic_ble_atts_handle_value_ntf(
...
@@ -246,8 +243,6 @@ int epic_ble_atts_handle_value_ntf(
return
-
EIO
;
return
-
EIO
;
}
}
// TODO: There is a race condition here. Ideally AttsHandleValueNtf would return an error or
// raise a callback
AttsHandleValueNtf
(
connId
,
handle
,
valueLen
,
pValue
);
AttsHandleValueNtf
(
connId
,
handle
,
valueLen
,
pValue
);
return
0
;
return
0
;
}
}
...
@@ -259,8 +254,6 @@ int epic_ble_atts_handle_value_ind(
...
@@ -259,8 +254,6 @@ int epic_ble_atts_handle_value_ind(
return
-
EIO
;
return
-
EIO
;
}
}
// TODO: There is a race condition here. Ideally AttsHandleValueInd would return an error or
// raise a callback
AttsHandleValueInd
(
connId
,
handle
,
valueLen
,
pValue
);
AttsHandleValueInd
(
connId
,
handle
,
valueLen
,
pValue
);
return
0
;
return
0
;
}
}
...
...
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