From f22f2072429882b8bb67bec56216b5ba4c94962e Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 7 Sep 2012 10:39:46 +0000 Subject: [PATCH] [stock] Voice mode: more delay before checking for busy --- src/stock/voice.cpp | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/stock/voice.cpp b/src/stock/voice.cpp index a7bd88cb9..9765b5fc6 100644 --- a/src/stock/voice.cpp +++ b/src/stock/voice.cpp @@ -34,19 +34,6 @@ #include "../open9x.h" struct t_voice Voice ; -/* TODO why? static uint8_t v_ctr ; -uint8_t v_first[8] ; */ - -/*void putVoiceQueueUpper( uint8_t value ) -{ - struct t_voice *vptr; - vptr = voiceaddress(); - - if (vptr->VoiceQueueCount < VOICE_Q_LENGTH - 1) { - pushPrompt(0xFF); - pushPrompt(value); - } -}*/ void pushCustomPrompt(uint8_t value) { @@ -74,11 +61,6 @@ void pushPrompt(uint8_t value) vptr->VoiceQueueInIndex &= (VOICE_Q_LENGTH - 1); vptr->VoiceQueueCount += 1; } - /* TODO why? - if (v_ctr < 8) { - v_first[v_ctr] = value; - v_ctr += 1; - } */ } struct t_voice *voiceaddress() @@ -134,10 +116,11 @@ void t_voice::voice_process(void) PORTB |= (1 << OUT_B_LIGHT); // Drive high,pullup enabled DDRB &= ~(1 << OUT_B_LIGHT); // Change to input #if !defined(SIMU) - asm(" nop"); - asm(" nop"); -#endif // delay to allow input to settle + asm(" nop"); + asm(" nop"); + asm(" nop") ; +#endif busy = PINB & 0x80; DDRB |= (1 << OUT_B_LIGHT); // Change to output // The next bit guarantees the backlight output gets clocked out