summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2010-08-23 15:46:24 +0900
committertmk <nobody@nowhere>2010-08-23 23:11:14 +0900
commit3b31337cd8a5fe8b02924f2056ad2648a028c563 (patch)
tree060cc2413f74f89c957655d3fe954ac58c3ae42d /print.c
parentc17f07819ffeb119a09d4acdfa5097b272d2e2f9 (diff)
perform nomal keyboard behavior. It works now!!!
Diffstat (limited to 'print.c')
-rw-r--r--print.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/print.c b/print.c
index 2f0617c64f..8e46decac4 100644
--- a/print.c
+++ b/print.c
@@ -60,7 +60,14 @@ void phex16(unsigned int i)
void pbin(unsigned char c)
{
- for (int i=7; i>=0; i--) {
+ for (int i = 7; i >= 0; i--) {
+ usb_debug_putchar((c & (1<<i)) ? '1' : '0');
+ }
+}
+
+void pbin_reverse(unsigned char c)
+{
+ for (int i = 0; i < 8; i++) {
usb_debug_putchar((c & (1<<i)) ? '1' : '0');
}
}