summaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index e4ed7e2..e9046a3 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -114,7 +114,8 @@ const struct usb_interface_descriptor keyboard_iface = {
};
-void keyboard_get_descriptor(uint8_t **buf,uint16_t *len)
+void
+keyboard_get_descriptor (uint8_t ** buf, uint16_t * len)
{
/* Handle the HID report descriptor. */
@@ -126,12 +127,12 @@ void
keyboard_test (void)
{
static int c = 0;
- uint8_t buf[8] = { 0, 0, 0, 0 ,0,0,0,0};
+ uint8_t buf[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
- buf[0]=(c>> 1) & 7;
+ buf[0] = (c >> 1) & 7;
- buf[2]= (c&1) ? 12:0;
+ buf[2] = (c & 1) ? 12 : 0;
c++;