Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Haun
firmware
Commits
c3c5a5f8
Commit
c3c5a5f8
authored
Oct 06, 2019
by
Rahix
Browse files
Merge 'Return to sync logging before sleep'
See merge request
card10/firmware!338
parents
7648dc7d
95f738f8
Pipeline
#4138
passed with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
epicardium/modules/pmic.c
View file @
c3c5a5f8
...
...
@@ -184,8 +184,6 @@ __attribute__((noreturn)) static void pmic_die(float u_batt)
/* TODO: Wake-up when USB is attached again */
sleep_deepsleep
();
card10_reset
();
while
(
1
)
;
}
/*
...
...
@@ -368,6 +366,7 @@ void vPmicTask(void *pvParameters)
if
(
duration
>=
pdMS_TO_TICKS
(
1000
))
{
if
(
epic_buttons_read
(
BUTTON_RIGHT_TOP
))
{
serial_return_to_synchronous
();
LOG_WARN
(
"pmic"
,
"Resetting ..."
...
...
@@ -386,6 +385,7 @@ void vPmicTask(void *pvParameters)
}
if
(
duration
>
pdMS_TO_TICKS
(
1000
))
{
serial_return_to_synchronous
();
LOG_WARN
(
"pmic"
,
"Poweroff"
);
sleep_deepsleep
();
card10_reset
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment