at-serial-port: implement built-in echo/garbage removal

We expect the responses to start always with <CR><LF>. We just remove anything
that comes before that.
This commit is contained in:
Aleksander Morgado
2012-02-16 10:27:22 +01:00
parent 1db0004033
commit 21162a366a
5 changed files with 130 additions and 2 deletions
+14 -1
View File
@@ -3,6 +3,7 @@ noinst_PROGRAMS = \
test-modem-helpers \
test-charsets \
test-qcdm-serial-port \
test-at-serial-port \
test-sms
test_modem_helpers_SOURCES = \
@@ -47,6 +48,19 @@ test_qcdm_serial_port_LDADD = \
$(top_builddir)/libqcdm/src/libqcdm.la \
-lutil
test_at_serial_port_SOURCES = \
test-at-serial-port.c
test_at_serial_port_CPPFLAGS = \
$(MM_CFLAGS) \
-I$(top_srcdir)
test_at_serial_port_LDADD = \
$(MM_LIBS) \
$(top_builddir)/src/libserial.la \
$(top_builddir)/src/libmodem-helpers.la \
-lutil
test_sms_SOURCES = \
test-sms.c
@@ -69,4 +83,3 @@ check-local: test-modem-helpers
$(abs_builddir)/test-sms
endif