Audio driver fix.
This commit is contained in:
@@ -531,6 +531,12 @@ void audioTask(void * pdata)
|
|||||||
#if defined(PCBX12S) || defined(RADIO_TX16S)
|
#if defined(PCBX12S) || defined(RADIO_TX16S)
|
||||||
// The audio amp needs ~2s to start
|
// The audio amp needs ~2s to start
|
||||||
RTOS_WAIT_MS(1000); // 1s
|
RTOS_WAIT_MS(1000); // 1s
|
||||||
|
#elif defined(PCBNV14)
|
||||||
|
while(!isAudioReady())
|
||||||
|
{
|
||||||
|
audioChipReset();
|
||||||
|
RTOS_WAIT_MS(1000);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!globalData.unexpectedShutdown) {
|
if (!globalData.unexpectedShutdown) {
|
||||||
|
|||||||
@@ -276,7 +276,8 @@ uint8_t audioHardReset(void)
|
|||||||
XDCS_HIGH();
|
XDCS_HIGH();
|
||||||
CS_HIGH();
|
CS_HIGH();
|
||||||
RST_HIGH();
|
RST_HIGH();
|
||||||
while (READ_DREQ() == 0 && retry < 200) {
|
while (READ_DREQ() == 0 && retry < 200)
|
||||||
|
{
|
||||||
retry++;
|
retry++;
|
||||||
delay_us(50);
|
delay_us(50);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user