Commit 657b062c authored by schneider's avatar schneider
Browse files

fix(pycardium): Optimize usage of epic_sleep

parent bc4c4fb5
......@@ -260,7 +260,7 @@ static void systick_delay(uint32_t us)
/* Add some error margin to avoid issues with the clock accuracy
* of epicardium. We will account for the actual time via our
* (accurate) systick */
epic_sleep(sleep_time / 2);
epic_sleep(sleep_time * 8 / 10);
/* epic_sleep() can return early if there was an interrupt
* coming from epicardium side.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment