Aligning delays in MD-UV3x0 AT1846S_init to the original firmware's ones

This commit is contained in:
Silvano Seva 2021-03-20 11:50:39 +01:00
parent f1643a8748
commit cfe2a609d5
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ static inline void _reloadConfig()
void AT1846S_init() void AT1846S_init()
{ {
i2c_writeReg16(0x30, 0x0001); /* Soft reset */ i2c_writeReg16(0x30, 0x0001); /* Soft reset */
delayMs(100); delayMs(160);
i2c_writeReg16(0x30, 0x0004); // Set pdn_reg (power down pin) i2c_writeReg16(0x30, 0x0004); // Set pdn_reg (power down pin)
@ -104,12 +104,12 @@ void AT1846S_init()
// and set rx_on // and set rx_on
// and set mute when rxno // and set mute when rxno
// and set xtal_mode to 26MHz/13MHz // and set xtal_mode to 26MHz/13MHz
delayMs(100); delayMs(160);
i2c_writeReg16(0x30, 0x40A6); /* Start calibration */ i2c_writeReg16(0x30, 0x40A6); /* Start calibration */
delayMs(100); delayMs(160);
i2c_writeReg16(0x30, 0x4006); /* Stop calibration */ i2c_writeReg16(0x30, 0x4006); /* Stop calibration */
delayMs(100); delayMs(160);
i2c_writeReg16(0x40, 0x0031); i2c_writeReg16(0x40, 0x0031);
} }