From 8183385a186a1fc5b03c68719a3f573b5c94fd11 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Wed, 22 Jun 2005 21:58:48 +0000 Subject: [PATCH] Append \r\n --- phoned/modem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phoned/modem.c b/phoned/modem.c index 9c755af..562afe4 100644 --- a/phoned/modem.c +++ b/phoned/modem.c @@ -76,11 +76,13 @@ void stmod(str) pthread_mutex_unlock(&mpipemx); pthread_mutex_lock(&modemmx); write(modemfd, str, strlen(str) + 1); + write(modemfd, "\r\n", 3); pthread_cond_signal(&mpcond); pthread_mutex_unlock(&modemmx); } else { pthread_mutex_lock(&modemmx); write(modemfd, str, strlen(str) + 1); + write(modemfd, "\r\n", 3); pthread_mutex_unlock(&modemmx); } } @@ -152,6 +154,7 @@ int init_modem(char* dev) pthread_mutex_unlock(&modemmx); mo = &rockwell; mo->init(); + voice_init(); pthread_mutex_lock(&mpipemx); pipe(modempipes); pthread_mutex_unlock(&mpipemx);