increase i2c timeout

This commit is contained in:
TuxSH 2019-04-07 16:13:14 +02:00
parent 4f699ccb81
commit 5f295c4227
2 changed files with 3 additions and 2 deletions

View File

@ -104,6 +104,7 @@ void initScreens(void)
//Turn on backlight
I2C_writeReg(I2C_DEV_MCU, 0x22, 0x2A);
wait(5);
}
else updateBrightness(MULTICONFIG(BRIGHTNESS));

View File

@ -89,12 +89,12 @@ u32 waitInput(bool isMenu)
if(shouldShellShutdown)
{
u8 shellState = I2C_readReg(I2C_DEV_MCU, 0xF);
wait(3);
wait(5);
if(!(shellState & 2)) mcuPowerOff();
}
u8 intStatus = I2C_readReg(I2C_DEV_MCU, 0x10);
wait(3);
wait(5);
if(intStatus & 1) mcuPowerOff(); //Power button pressed
oldKey = 0;