summaryrefslogtreecommitdiff
path: root/m0110.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-12-19 14:06:53 +0900
committertmk <nobody@nowhere>2011-12-19 14:06:53 +0900
commitbaf885dc31e1d4ac98e03870dffea6e19c259427 (patch)
tree6a88bf3d35306b4f7d45fe01f56fafdaa91cb487 /m0110.c
parent3f0289e66678af8c2d1f001ccb9cb34ccfba7c5c (diff)
M0110: added keymaps, mousekeys
Diffstat (limited to 'm0110.c')
-rw-r--r--m0110.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/m0110.c b/m0110.c
index 725675ed8f..f4f5223dd0 100644
--- a/m0110.c
+++ b/m0110.c
@@ -103,7 +103,7 @@ KEY EVENT:
To get scan code, use ((bits&(1<<7)) | ((bits&7F))>>1).
SCAN CODE:
- M0110A
+ M0110
,---------------------------------------------------------.
| `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backs|
|---------------------------------------------------------|
@@ -211,7 +211,9 @@ uint8_t m0110_recv(void)
}
}
idle();
- print("m0110_send recv data: "); phex(data); print("\n");
+ if (data != M0110_NULL) {
+ print("m0110_recv data: "); phex(data); print("\n");
+ }
return data;
ERROR:
if (m0110_error) {
@@ -229,7 +231,7 @@ uint8_t m0110_recv_key(void)
if (key == 0xFF || key == M0110_NULL)
return M0110_NULL;
else
- return (key&(1<<7) | (key&0x7F)>>1);
+ return ((key&(1<<7)) | ((key&0x7F)>>1));
}