From ad501b8184ea2879e0b5ce7b18da4c7405e50826 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 31 Mar 2011 21:17:00 +0200 Subject: Don't echo received characters. --- main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'main.cpp') 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 { 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') { -- cgit v1.2.3