From 479e719a64d75374f00438498cf91ba2601a63f1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 2 Nov 2014 15:16:42 +0000 Subject: fish --- src/keyboard.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/keyboard.c') 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++; -- cgit v1.2.3