diff options
author | Maxim Devaev <[email protected]> | 2022-09-12 13:04:43 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-12 13:04:43 +0300 |
commit | e6b34c9cb1c2988c76deff8714c8e69d43b4fcd7 (patch) | |
tree | 2c20138562fda5812b184f6087549d2902b2f153 | |
parent | 615863a84846a5a26e5505bdd5e0d63d3baee6e0 (diff) |
refactoring
-rw-r--r-- | hid/lib/drivers-avr/factory.cpp | 1 | ||||
-rw-r--r-- | hid/lib/drivers-stm32/factory.cpp | 1 | ||||
-rw-r--r-- | hid/lib/drivers/board.h | 1 | ||||
-rw-r--r-- | hid/src/main.cpp | 2 |
4 files changed, 2 insertions, 3 deletions
diff --git a/hid/lib/drivers-avr/factory.cpp b/hid/lib/drivers-avr/factory.cpp index a4934673..b4c18273 100644 --- a/hid/lib/drivers-avr/factory.cpp +++ b/hid/lib/drivers-avr/factory.cpp @@ -79,5 +79,4 @@ namespace DRIVERS { return new Board(DRIVERS::DUMMY); } } - } diff --git a/hid/lib/drivers-stm32/factory.cpp b/hid/lib/drivers-stm32/factory.cpp index 247f388f..60145a4d 100644 --- a/hid/lib/drivers-stm32/factory.cpp +++ b/hid/lib/drivers-stm32/factory.cpp @@ -82,5 +82,4 @@ namespace DRIVERS { return new Board(DRIVERS::DUMMY); } } - } diff --git a/hid/lib/drivers/board.h b/hid/lib/drivers/board.h index 0dfd425c..b0981e71 100644 --- a/hid/lib/drivers/board.h +++ b/hid/lib/drivers/board.h @@ -24,6 +24,7 @@ #include "driver.h" + namespace DRIVERS { struct Board : public Driver { using Driver::Driver; diff --git a/hid/src/main.cpp b/hid/src/main.cpp index 791ec3ad..991d8c26 100644 --- a/hid/src/main.cpp +++ b/hid/src/main.cpp @@ -49,7 +49,7 @@ static Outputs _out; #ifdef HID_DYNAMIC static bool _reset_required = false; static unsigned long _reset_timestamp; -#define RESET_TIMEOUT (500000) +# define RESET_TIMEOUT 500000 #endif |