summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-14 03:57:36 +0300
committerMaxim Devaev <[email protected]>2022-07-14 03:57:36 +0300
commit1c77ae1ef9355a4e0fb439a1d94bb26b2f77db04 (patch)
tree1a796c62d76a2cb88f33591b5f70e3bc796d8b80 /hid
parentd409ae68c329fb436a49bf1aac51c203cbd93bda (diff)
refactoring
Diffstat (limited to 'hid')
-rw-r--r--hid/lib/drivers-avr/factory.cpp5
-rw-r--r--hid/src/main.cpp4
2 files changed, 4 insertions, 5 deletions
diff --git a/hid/lib/drivers-avr/factory.cpp b/hid/lib/drivers-avr/factory.cpp
index ccd1612c..35100431 100644
--- a/hid/lib/drivers-avr/factory.cpp
+++ b/hid/lib/drivers-avr/factory.cpp
@@ -21,16 +21,15 @@
#include "usb/hid.h"
-#ifdef HID_WITH_PS2
#include "ps2/hid.h"
-#endif
#include "factory.h"
#include "eeprom.h"
#ifndef ARDUINO_ARCH_AVR
- #error "Only AVR is supported"
+# error "Only AVR is supported"
#endif
+
namespace DRIVERS {
Keyboard *Factory::makeKeyboard(type _type) {
switch (_type) {
diff --git a/hid/src/main.cpp b/hid/src/main.cpp
index 83a8d7f7..00716667 100644
--- a/hid/src/main.cpp
+++ b/hid/src/main.cpp
@@ -135,9 +135,9 @@ static void _initOutputs() {
break;
}
-#ifdef ARDUINO_ARCH_AVR
+# ifdef ARDUINO_ARCH_AVR
USBDevice.attach();
-#endif
+# endif
_kbd->begin();
_mouse->begin();