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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
pippin
firmware
Commits
30f89fe9
Commit
30f89fe9
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
chore(ess): Fix c&p comment
parent
d35e31f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/ble/ess.c
+3
-0
3 additions, 0 deletions
epicardium/ble/ess.c
with
3 additions
and
0 deletions
epicardium/ble/ess.c
+
3
−
0
View file @
30f89fe9
...
@@ -236,6 +236,7 @@ void bleESS_update(void)
...
@@ -236,6 +236,7 @@ void bleESS_update(void)
dmConnId_t
connId
=
AppConnIsOpen
();
dmConnId_t
connId
=
AppConnIsOpen
();
if
(
connId
!=
DM_CONN_ID_NONE
)
{
if
(
connId
!=
DM_CONN_ID_NONE
)
{
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_TEMP_CCC_IDX
))
{
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_TEMP_CCC_IDX
))
{
printf
(
"send temp notification
\n
"
);
AttsHandleValueNtf
(
AttsHandleValueNtf
(
connId
,
connId
,
ESS_TEMPERATURE_VAL_HDL
,
ESS_TEMPERATURE_VAL_HDL
,
...
@@ -244,6 +245,7 @@ void bleESS_update(void)
...
@@ -244,6 +245,7 @@ void bleESS_update(void)
);
);
}
}
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_HUMI_CCC_IDX
))
{
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_HUMI_CCC_IDX
))
{
printf
(
"send humi notification
\n
"
);
AttsHandleValueNtf
(
AttsHandleValueNtf
(
connId
,
connId
,
ESS_HUMIDITY_VAL_HDL
,
ESS_HUMIDITY_VAL_HDL
,
...
@@ -252,6 +254,7 @@ void bleESS_update(void)
...
@@ -252,6 +254,7 @@ void bleESS_update(void)
);
);
}
}
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_PRES_CCC_IDX
))
{
if
(
AttsCccEnabled
(
connId
,
BLE_ESS_PRES_CCC_IDX
))
{
printf
(
"send pres notification
\n
"
);
AttsHandleValueNtf
(
AttsHandleValueNtf
(
connId
,
connId
,
ESS_PRESSURE_VAL_HDL
,
ESS_PRESSURE_VAL_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