refactoring

This commit is contained in:
Maxim Devaev 2022-07-14 03:57:36 +03:00
parent d409ae68c3
commit 1c77ae1ef9
2 changed files with 4 additions and 5 deletions

View File

@ -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) {

View File

@ -135,9 +135,9 @@ static void _initOutputs() {
break;
}
#ifdef ARDUINO_ARCH_AVR
# ifdef ARDUINO_ARCH_AVR
USBDevice.attach();
#endif
# endif
_kbd->begin();
_mouse->begin();