summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();