mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
fix a potential mcu bug
This commit is contained in:
parent
ea26510402
commit
a9624b6d81
@ -196,8 +196,12 @@ void MCU_HandleInterrupts(u32 __attribute__((unused)) irqn)
|
||||
|
||||
void MCU_Init(void)
|
||||
{
|
||||
const u32 mask = 0xFFBF0800;
|
||||
u32 clrpend, mask = 0xFFBF0800;
|
||||
|
||||
/* set register mask and clear any pending registers */
|
||||
MCU_WriteRegBuf(REG_INT_EN, (const u8*)&mask, sizeof(mask));
|
||||
MCU_ReadRegBuf(REG_INT_MASK, (u8*)&clrpend, sizeof(clrpend));
|
||||
|
||||
MCU_ResetLED();
|
||||
|
||||
MCU_UpdateVolumeSlider();
|
||||
|
Loading…
x
Reference in New Issue
Block a user