summaryrefslogtreecommitdiff
path: root/hid/lib/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'hid/lib/drivers')
-rw-r--r--hid/lib/drivers/connection.h5
-rw-r--r--hid/lib/drivers/serial.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/hid/lib/drivers/connection.h b/hid/lib/drivers/connection.h
index 20560571..39973a5a 100644
--- a/hid/lib/drivers/connection.h
+++ b/hid/lib/drivers/connection.h
@@ -25,9 +25,10 @@
#include "driver.h"
#include "stdint.h"
+
namespace DRIVERS {
- typedef void(*DataHandler)(const uint8_t * data, size_t len);
- typedef void(*TimeoutHandler)();
+ typedef void (*DataHandler)(const uint8_t *data, size_t size);
+ typedef void (*TimeoutHandler)();
struct Connection : public Driver {
using Driver::Driver;
diff --git a/hid/lib/drivers/serial.h b/hid/lib/drivers/serial.h
index d88c8fb4..8eaadaff 100644
--- a/hid/lib/drivers/serial.h
+++ b/hid/lib/drivers/serial.h
@@ -21,12 +21,14 @@
#pragma once
+
#ifdef CMD_SERIAL
#include "connection.h"
+
namespace DRIVERS {
#ifdef Serial
-#undef Serial
+# undef Serial
#endif
struct Serial : public Connection {
Serial() : Connection(CONNECTION) {}