From 9cba29c8e2c9df0e0df5ca27e0781b0abd578357 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Wed, 13 Apr 2022 21:27:47 +0100 Subject: [PATCH] 512Hz not MHz --- stage2/arm9/source/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage2/arm9/source/utils.c b/stage2/arm9/source/utils.c index 164842b..9029a48 100644 --- a/stage2/arm9/source/utils.c +++ b/stage2/arm9/source/utils.c @@ -88,7 +88,7 @@ void wait(u64 amount) // Max 500ms static inline u8 mcuPeriodMsToTick(u32 periodMs) { - // 512MHz + // 512Hz u32 res = 512u * periodMs / 1000u; res = res < 2 ? 1 : res - 1; // res not allowed to be zero res = res > 255 ? 255 : res; // res can't exceed 255