diff options
author | Ryan <fauxpark@gmail.com> | 2021-09-01 19:03:14 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 19:03:14 +1000 |
commit | 41c50bb653b840c595fb31541729d892f68666e6 (patch) | |
tree | ba05c7c9654f7be1104b20f3195dd2cf288e004e /tmk_core/protocol | |
parent | 971d36bb9ea37962c57733e5f7c0c24e5a6cebeb (diff) | |
download | qmk_firmware-41c50bb653b840c595fb31541729d892f68666e6.tar.gz qmk_firmware-41c50bb653b840c595fb31541729d892f68666e6.zip |
Change keyboard level include guards to `pragma once` (#14248)
* Change keyboard level include guards to `pragma once`
And clean up a lot of layout macros
* Oops
* Remove dangling endif
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/usb_hid/parser.h | 5 | ||||
-rw-r--r-- | tmk_core/protocol/usb_hid/usb_hid.h | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/tmk_core/protocol/usb_hid/parser.h b/tmk_core/protocol/usb_hid/parser.h index 036281fa6..ba35b7af5 100644 --- a/tmk_core/protocol/usb_hid/parser.h +++ b/tmk_core/protocol/usb_hid/parser.h | |||
@@ -1,5 +1,4 @@ | |||
1 | #ifndef PARSER_H | 1 | #pragma once |
2 | #define PARSER_H | ||
3 | 2 | ||
4 | #include "hid.h" | 3 | #include "hid.h" |
5 | #include "report.h" | 4 | #include "report.h" |
@@ -11,5 +10,3 @@ public: | |||
11 | uint16_t time_stamp; | 10 | uint16_t time_stamp; |
12 | virtual void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf); | 11 | virtual void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf); |
13 | }; | 12 | }; |
14 | |||
15 | #endif | ||
diff --git a/tmk_core/protocol/usb_hid/usb_hid.h b/tmk_core/protocol/usb_hid/usb_hid.h index 083b68d1f..5cb5f5d03 100644 --- a/tmk_core/protocol/usb_hid/usb_hid.h +++ b/tmk_core/protocol/usb_hid/usb_hid.h | |||
@@ -1,10 +1,6 @@ | |||
1 | #ifndef USB_HID_H | 1 | #pragma once |
2 | #define USB_HID_H | ||
3 | 2 | ||
4 | #include "report.h" | 3 | #include "report.h" |
5 | 4 | ||
6 | |||
7 | extern report_keyboard_t usb_hid_keyboard_report; | 5 | extern report_keyboard_t usb_hid_keyboard_report; |
8 | extern uint16_t usb_hid_time_stamp; | 6 | extern uint16_t usb_hid_time_stamp; |
9 | |||
10 | #endif | ||