From: Pat Thoyts Date: Fri, 1 Nov 2013 10:35:14 +0000 (+0000) Subject: Whitespace cleanup. X-Git-Url: http://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=91366e7d31bdb41f0b9ac269d12a3561f6a45fe8;p=hid_keyb Whitespace cleanup. Signed-off-by: Pat Thoyts --- diff --git a/main.c b/main.c index e76a8ce..21ee415 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,7 @@ /* hid_keybd.c * * This uses a ATtiny45 - * +----------+ + * +----------+ * reset -| RST VCC|- 5V * Key_A -| PB3 PB2|- D+ / SCK * Key_B -| PB4 PB1|- LED / MISO @@ -19,12 +19,12 @@ #include #include #include /* for sei() */ -#include /* for _delay_ms() */ +#include /* for _delay_ms() */ #include #include /* required by usbdrv.h */ #include "usbdrv.h" -#include "oddebug.h" /* This is also an example for using debug macros */ +#include "oddebug.h" /* This is also an example for using debug macros */ #include "osccal.h" /* attiny calibration */ #include "descriptor.c" @@ -70,6 +70,7 @@ enum { Key_B = 5, Key_CapsLock = 57, Key_NumLock = 83, + Key_Execute = 116, Key_VolUp = 128, Key_VolDown = 129, }; @@ -195,14 +196,13 @@ appPoll(void) } } } - if (!(pin_state & (1 << PB4))) { Global.led_limit = Led_Quick; if (Global.state == State_Default) { if (Global.key_down_counter == 255) { Global.state = State_KeyReady; Global.keyboard_report.modifier = 0; - Global.keyboard_report.keycode[0] = Key_NumLock; + Global.keyboard_report.keycode[0] = Key_Execute; Global.key_down_counter = 0; } else { ++Global.key_down_counter; @@ -210,9 +210,9 @@ appPoll(void) } } if (pin_state & ((1<