summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-03-31 21:17:00 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-03-31 21:17:00 +0200
commitad501b8184ea2879e0b5ce7b18da4c7405e50826 (patch)
treeac3314a761df8349ea5d38de31dcd5bec0ae79c2
parent9153ca958b60eee730a297ab937a4ce5c8dd1f50 (diff)
Don't echo received characters.
-rw-r--r--main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index d548ab5..8f1785a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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') {