refactoring

This commit is contained in:
Maxim Devaev
2022-07-11 02:12:38 +03:00
parent 1afd96cdb9
commit 89aff795fd
10 changed files with 29 additions and 29 deletions

View File

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

View File

@@ -64,6 +64,5 @@ namespace DRIVERS {
KeyboardLedsState result = {0};
return result;
}
};
}

View File

@@ -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();

View File

@@ -22,5 +22,7 @@
#pragma once
#include <Arduino.h>
bool is_micros_timed_out(unsigned long start_ts, unsigned long timeout);