fixed driver to not print escape character

git-svn-id: svn://anubis/misc/parport-2x20vfd@117 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2009-06-19 03:09:58 +00:00
parent 06e9aec1e0
commit de1e52f65f

View File

@ -17,8 +17,9 @@ int main(int argc, char ** argv)
{
for (const char * chr = argv[i]; *chr; chr++)
{
if (*chr == '\n')
if (*chr == '\\')
vfd.setAddress(VFD::ADDRESS_LINE2);
else
vfd.writeByte(*chr);
}
}