mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-18 08:56:50 +08:00
refactoring
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
#include "keyboard.h"
|
||||
#include "mouse.h"
|
||||
|
||||
namespace DRIVERS {
|
||||
|
||||
namespace DRIVERS {
|
||||
struct Factory {
|
||||
static Keyboard *makeKeyboard(type _type);
|
||||
static Mouse *makeMouse(type _type);
|
||||
|
||||
@@ -64,6 +64,5 @@ namespace DRIVERS {
|
||||
KeyboardLedsState result = {0};
|
||||
return result;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
# #
|
||||
*****************************************************************************/
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "tools.h"
|
||||
|
||||
|
||||
bool is_micros_timed_out(unsigned long start_ts, unsigned long timeout) {
|
||||
unsigned long now = micros();
|
||||
|
||||
@@ -22,5 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
|
||||
bool is_micros_timed_out(unsigned long start_ts, unsigned long timeout);
|
||||
|
||||
Reference in New Issue
Block a user