diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-03-31 21:17:00 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-03-31 21:17:00 +0200 |
commit | ad501b8184ea2879e0b5ce7b18da4c7405e50826 (patch) | |
tree | ac3314a761df8349ea5d38de31dcd5bec0ae79c2 | |
parent | 9153ca958b60eee730a297ab937a4ce5c8dd1f50 (diff) |
Don't echo received characters.
-rw-r--r-- | main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -34,13 +34,9 @@ class USBThread : public BaseThread<USBThread, 256> { w_s_t w_s = W_S;
uint8_t w_n = 0;
- while (TRUE) {
- palSetPad(GPIOA, 5);
-
+ while(1) {
size_t buffer = usbs->getc();
if(buffer >= 0 && buffer < 256) {
- usbs->putc(buffer);
-
if(w_s == W_S && buffer == 'S') {
w_s = W_N;
} else if(w_s == W_N && buffer >= '1' && buffer <= '4') {
|