mirror of
https://github.com/AntonioND/palib.git
synced 2025-06-18 14:45:43 -04:00
led: Fix calls to ledBlink()
This commit is contained in:
parent
97ac165126
commit
ea94f949bc
@ -364,7 +364,7 @@ static inline void PA_SetScreenLight(u8 screen, u8 light){
|
|||||||
\~french Vitesse : 0 pour lent, 1 pour rapide
|
\~french Vitesse : 0 pour lent, 1 pour rapide
|
||||||
*/
|
*/
|
||||||
static inline void PA_SetLedBlink(u8 blink, u8 speed){
|
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)
|
/*! \def PA_WaitFor(something)
|
||||||
|
@ -32,7 +32,7 @@ void PA_Init(void){
|
|||||||
PA_InitFifo();
|
PA_InitFifo();
|
||||||
|
|
||||||
// Stop LED blinking
|
// Stop LED blinking
|
||||||
ledBlink(0);
|
ledBlink(LED_ALWAYS_ON);
|
||||||
|
|
||||||
// Wait until the IPC buffer has been sent from the ARM9
|
// Wait until the IPC buffer has been sent from the ARM9
|
||||||
while (PA_Transfer == NULL);
|
while (PA_Transfer == NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user