Skip to content

Commit

Permalink
rp2040: fix timeUnit type
Browse files Browse the repository at this point in the history
It should be int64 like for all other systems, not uint64.
  • Loading branch information
aykevl authored and deadprogram committed Apr 26, 2024
1 parent 797a5a2 commit f986ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/runtime_rp2040.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f986ea8

Please sign in to comment.