Skip to content
Snippets Groups Projects
Commit 657b062c authored by schneider's avatar schneider
Browse files

fix(pycardium): Optimize usage of epic_sleep

parent bc4c4fb5
No related branches found
No related tags found
1 merge request!480Pycardium: Use sleep API call while sleeping
...@@ -260,7 +260,7 @@ static void systick_delay(uint32_t us) ...@@ -260,7 +260,7 @@ static void systick_delay(uint32_t us)
/* Add some error margin to avoid issues with the clock accuracy /* Add some error margin to avoid issues with the clock accuracy
* of epicardium. We will account for the actual time via our * of epicardium. We will account for the actual time via our
* (accurate) systick */ * (accurate) systick */
epic_sleep(sleep_time / 2); epic_sleep(sleep_time * 8 / 10);
/* epic_sleep() can return early if there was an interrupt /* epic_sleep() can return early if there was an interrupt
* coming from epicardium side. * coming from epicardium side.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment