summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-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') {