diff options
| author | Hierophect <hierophect@gmail.com> | 2019-12-05 14:25:39 -0500 |
|---|---|---|
| committer | Hierophect <hierophect@gmail.com> | 2019-12-05 14:25:39 -0500 |
| commit | 9b43d5ced4d41b58209cc37434543bd990cced8f (patch) | |
| tree | e20cf5c6d22da140c16a6810011dd3ea0d4af443 /shared-module/network | |
| parent | 0d8eb3cfb4ef0e2a01a657752603a4c259423e46 (diff) | |
| parent | 12f64c7c16377c0600d7b09e7848474254e46d1e (diff) | |
Merge remote-tracking branch 'upstream/master' into stm32-blackpill
Diffstat (limited to 'shared-module/network')
| -rw-r--r-- | shared-module/network/__init__.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-module/network/__init__.c b/shared-module/network/__init__.c index 96648b260..925e9a2a3 100644 --- a/shared-module/network/__init__.c +++ b/shared-module/network/__init__.c @@ -31,6 +31,8 @@ #include "py/mphal.h" #include "py/mperrno.h" +#include "supervisor/shared/tick.h" + #include "shared-bindings/random/__init__.h" #include "shared-module/network/__init__.h" @@ -53,7 +55,7 @@ void network_module_deinit(void) { void network_module_background(void) { static uint32_t next_tick = 0; - uint32_t this_tick = ticks_ms; + uint32_t this_tick = supervisor_ticks_ms32(); if (this_tick < next_tick) return; next_tick = this_tick + 1000; |
