From de1e52f65f0ff390250b2becbd6e042de1fa139f Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 19 Jun 2009 03:09:58 +0000 Subject: [PATCH] fixed driver to not print escape character git-svn-id: svn://anubis/misc/parport-2x20vfd@117 bd8a9e45-a331-0410-811e-c64571078777 --- driver.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/driver.cc b/driver.cc index a76f747..35c339f 100644 --- a/driver.cc +++ b/driver.cc @@ -17,9 +17,10 @@ int main(int argc, char ** argv) { for (const char * chr = argv[i]; *chr; chr++) { - if (*chr == '\n') + if (*chr == '\\') vfd.setAddress(VFD::ADDRESS_LINE2); - vfd.writeByte(*chr); + else + vfd.writeByte(*chr); } }