From f986ea84aca1420698da56667f57e69ec585530a Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 26 Apr 2024 13:20:26 +0200 Subject: [PATCH] rp2040: fix timeUnit type It should be int64 like for all other systems, not uint64. --- src/runtime/runtime_rp2040.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/runtime_rp2040.go b/src/runtime/runtime_rp2040.go index e5659d625..8a8c343c5 100644 --- a/src/runtime/runtime_rp2040.go +++ b/src/runtime/runtime_rp2040.go @@ -14,7 +14,7 @@ func machineTicks() uint64 // machineLightSleep is provided by package machine. func machineLightSleep(uint64) -type timeUnit uint64 +type timeUnit int64 // ticks returns the number of ticks (microseconds) elapsed since power up. func ticks() timeUnit {