summary refs log tree commit diff
path: root/protocol
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-10-04 15:03:42 +0900
committertmk <nobody@nowhere>2013-10-04 15:03:42 +0900
commitcb434cfebc607db15b52a42adae6423bd40f1f98 (patch)
tree65788f2ca9a37cfdb5d553e2bbf7d93e4ed01372 /protocol
parent7e8a85caadc0c5e4a8ccccf7bf1fa1f4220c9fae (diff)
Remove clear matrix on ADB recv error
Diffstat (limited to 'protocol')
-rw-r--r--protocol/adb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocol/adb.c b/protocol/adb.c
index 2baad32340..e4e26b7d7b 100644
--- a/protocol/adb.c
+++ b/protocol/adb.c
@@ -40,6 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
 #include <avr/io.h>
 #include <avr/interrupt.h>
 #include "adb.h"
+#include "debug.h"
 
 
 static inline void data_lo(void);
@@ -93,6 +94,7 @@ uint16_t adb_host_kbd_recv(void)
     }
     if (!read_bit()) {          // Startbit(1)
         // Service Request
+        dprintf("Startbit ERROR\n");
         return -2;
     }
 
@@ -104,6 +106,7 @@ uint16_t adb_host_kbd_recv(void)
     sei();
 
     if (stop) {
+        dprintf("Stopbit ERROR\n");
         return -3;
     }
     return data;