summaryrefslogtreecommitdiff
path: root/shared-module/network
diff options
context:
space:
mode:
authorHierophect <hierophect@gmail.com>2019-12-04 10:50:14 -0500
committerHierophect <hierophect@gmail.com>2019-12-04 10:50:14 -0500
commit3de1b9edbeb346341372e0efdfe4eafb9174aa65 (patch)
tree5826d0cf3e2295b234eb55963911e6a9abf4d717 /shared-module/network
parente6b45656f9ce93aee719542ff8aa3e966d6b1a67 (diff)
parent15886b1505d854d76e353b9c5261568c7065d2bf (diff)
Merge remote-tracking branch 'upstream/master' into stm32-displayio
Diffstat (limited to 'shared-module/network')
-rw-r--r--shared-module/network/__init__.c4
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;