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
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
TilCreator
firmware
Commits
e40b9176
Verified
Commit
e40b9176
authored
5 years ago
by
genofire
Browse files
Options
Downloads
Patches
Plain Diff
review fix of get rocket state
parent
a119d27c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/modules/leds.c
+8
-1
8 additions, 1 deletion
epicardium/modules/leds.c
pycardium/modules/py/leds.py
+2
-1
2 additions, 1 deletion
pycardium/modules/py/leds.py
with
10 additions
and
2 deletions
epicardium/modules/leds.c
+
8
−
1
View file @
e40b9176
...
...
@@ -102,7 +102,14 @@ void epic_leds_set_rocket(int led, uint8_t value)
}
uint8_t
epic_leds_get_rocket
(
int
led
)
{
pmic_get_led
(
led
);
uint8_t
ret
=
0
;
while
(
hwlock_acquire
(
HWLOCK_I2C
,
pdMS_TO_TICKS
(
1
))
<
0
)
{
vTaskDelay
(
pdMS_TO_TICKS
(
1
));
}
ret
=
pmic_get_led
(
led
);
hwlock_release
(
HWLOCK_I2C
);
return
ret
;
}
void
epic_set_flashlight
(
bool
power
)
...
...
This diff is collapsed.
Click to expand it.
pycardium/modules/py/leds.py
+
2
−
1
View file @
e40b9176
...
...
@@ -87,7 +87,8 @@ def get_rocket(led):
+-------+--------+----------+
| ``2`` | Green | Right |
+-------+--------+----------+
:return int: Brightness of LED (value between 0 and 31).
:rtype: int
:returns: Brightness of LED (value between 0 and 31).
"""
return
sys_leds
.
get_rocket
(
led
)
...
...
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