From aed8663f6652edbb633ad3979d90530926a36a8e Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Wed, 14 Mar 2012 08:56:58 +0000 Subject: [PATCH] Dynamic Keyboard library initial import git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@59 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- ArduinoSerial/ArduinoSerial.suo | Bin 20992 -> 20992 bytes SerialWindows.cpp | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduinoSerial/ArduinoSerial.suo b/ArduinoSerial/ArduinoSerial.suo index 4e0b6e3ec63a9a7bd9baed6690b6838d9b429c43..3b31034879ee106d9c2e458fbc4e47609654ce71 100644 GIT binary patch delta 460 zcmZoz!q~8caf1&FBkyEI7J2pu2VZ3;Fr1xS%yN-Okb!}L4T%2(!Q_i9Dw7XzvP`aE z4dCEJ7Hr^W+5Cg`3=5AeP?Q;2<_niUFM|kBL7jA!+$%h5)CpQT= z@qp~&Lz12RMIeBO2PnXeELb9V0jyFKMNlY!M;a)=g)I0*sD&|abEU8-Gczv(!{qg% z(u~%VH;VaBHeg}dB<{?}%P0j@E{?3FL;~n+0icK^lIZ3y5+Y2DS(6Jz{26UQ#!N1e zK0o=etl{Po85TyyvdxvUUaTPg3xN!fWiC4=FVyVa?5Qct#3-~mR{I$XFC#lp926)Z0E&doB?eJU0+}Dz^}7C9 Tuei8gS0&R>aM9*_MoRJkNA9Z5 delta 498 zcmZoz!q~8caf1&FBhO?-E(JDid-bqCXC@c3T;!2tU|65LWgHe7RZsDr@$Q0m8^`8*MoRJk`1Yu` diff --git a/SerialWindows.cpp b/SerialWindows.cpp index 5f490f1..0dab561 100644 --- a/SerialWindows.cpp +++ b/SerialWindows.cpp @@ -159,14 +159,14 @@ bool SerialWindows::WriteData(void *buffer, unsigned int nbChar) //Try to write the buffer on the Serial port if(!WriteFile(_hSerial, buffer, nbChar, &bytesSend, 0)) { - //In case it don't work get comm error and return false + //In case it doesn't work get comm error and return false ClearCommError(_hSerial, &_errors, &_status); return false; } else { - ClearCommError(_hSerial, &_errors, &_status); + //ClearCommError(_hSerial, &_errors, &_status); /* if(!FlushFileBuffers(_hSerial)) cout << "ERROR while flushing" << endl;*/ /* stringstream s; -- 2.30.2