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
0a5c478b
Commit
0a5c478b
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(hid): Don't crash when not enabled
parent
577d6b15
No related branches found
No related tags found
1 merge request
!382
HID over BLE
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/ble/hid_work.c
+4
-0
4 additions, 0 deletions
epicardium/ble/hid_work.c
epicardium/epicardium.h
+1
-1
1 addition, 1 deletion
epicardium/epicardium.h
with
5 additions
and
1 deletion
epicardium/ble/hid_work.c
+
4
−
0
View file @
0a5c478b
...
...
@@ -214,6 +214,10 @@ int epic_ble_hid_send_report(uint8_t report_id, uint8_t *data, uint8_t len)
return
-
EIO
;
}
if
(
!
queue
)
{
return
-
EIO
;
}
int
ret
;
ret
=
hid_queue_data
(
report_id
,
data
,
len
);
...
...
This diff is collapsed.
Click to expand it.
epicardium/epicardium.h
+
1
−
1
View file @
0a5c478b
...
...
@@ -2332,7 +2332,7 @@ API(API_BLE_GET_SCAN_REPORT, int epic_ble_get_scan_report(struct epic_scan_repor
* :return: `0` on success, `1` if the report is queued or a negative value if an error occured. Possible
* errors:
*
* - ``-EIO``: There is no host device connected
* - ``-EIO``: There is no host device connected
or BLE HID is not enabled.
* - ``-EAGAIN``: There is no space in the queue available. Try again later.
* - ``-EINVAL``: Either the report_id is out of range or the data is too long.
*
...
...
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