From ea94f949bc23260528433a04309e807d324fe6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Fri, 28 Feb 2025 01:34:40 +0000 Subject: [PATCH] led: Fix calls to ledBlink() --- include/arm9/PA_General.h | 2 +- source/arm7/PA.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arm9/PA_General.h b/include/arm9/PA_General.h index a4df150..549339f 100644 --- a/include/arm9/PA_General.h +++ b/include/arm9/PA_General.h @@ -364,7 +364,7 @@ static inline void PA_SetScreenLight(u8 screen, u8 light){ \~french Vitesse : 0 pour lent, 1 pour rapide */ static inline void PA_SetLedBlink(u8 blink, u8 speed){ - ledBlink(((blink&1) | ((speed&1) << 1)) << 4); + ledBlink((PM_LedStates)((blink & 1) | ((speed & 1) << 1))); } /*! \def PA_WaitFor(something) diff --git a/source/arm7/PA.c b/source/arm7/PA.c index 78735c2..2554ede 100644 --- a/source/arm7/PA.c +++ b/source/arm7/PA.c @@ -32,7 +32,7 @@ void PA_Init(void){ PA_InitFifo(); // Stop LED blinking - ledBlink(0); + ledBlink(LED_ALWAYS_ON); // Wait until the IPC buffer has been sent from the ARM9 while (PA_Transfer == NULL);