mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
refactoring
This commit is contained in:
parent
d409ae68c3
commit
1c77ae1ef9
@ -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) {
|
||||
|
||||
@ -135,9 +135,9 @@ static void _initOutputs() {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef ARDUINO_ARCH_AVR
|
||||
# ifdef ARDUINO_ARCH_AVR
|
||||
USBDevice.attach();
|
||||
#endif
|
||||
# endif
|
||||
|
||||
_kbd->begin();
|
||||
_mouse->begin();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user