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 /keyboards/bantam44 | |
| 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 'keyboards/bantam44')
| -rw-r--r-- | keyboards/bantam44/bantam44.h | 26 | ||||
| -rw-r--r-- | keyboards/bantam44/config.h | 5 |
2 files changed, 13 insertions, 18 deletions
diff --git a/keyboards/bantam44/bantam44.h b/keyboards/bantam44/bantam44.h index 38afbbdde..f680f9eac 100644 --- a/keyboards/bantam44/bantam44.h +++ b/keyboards/bantam44/bantam44.h | |||
| @@ -1,23 +1,21 @@ | |||
| 1 | #ifndef BANTAM44_H | 1 | #pragma once |
| 2 | #define BANTAM44_H | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| 5 | #define XXX KC_NO | ||
| 6 | |||
| 6 | // This a shortcut to help you visually see your layout. | 7 | // This a shortcut to help you visually see your layout. |
| 7 | // The following is an example using the Planck MIT layout | 8 | // The following is an example using the Planck MIT layout |
| 8 | // The first section contains all of the arguements | 9 | // The first section contains all of the arguements |
| 9 | // The second converts the arguments into a two-dimensional array | 10 | // The second converts the arguments into a two-dimensional array |
| 10 | #define LAYOUT( \ | 11 | #define LAYOUT( \ |
| 11 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | 12 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, \ |
| 12 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 13 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1B, \ |
| 13 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | 14 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, \ |
| 14 | K30, K31, K32, K33, K34, K35, K36, K37, K38 \ | 15 | k30, k31, k32, k34, k36, k38, k39, k3A, k3B \ |
| 15 | ) \ | 16 | ) { \ |
| 16 | { \ | 17 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B }, \ |
| 17 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | 18 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, XXX, k1B }, \ |
| 18 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K2A }, \ | 19 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B }, \ |
| 19 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | 20 | { k30, k31, k32, XXX, k34, XXX, k36, XXX, k38, k39, k3A, k3B } \ |
| 20 | { K30, K31, K32, KC_NO, K33, KC_NO, K34, KC_NO, K35, K36, K37, K38 } \ | ||
| 21 | } | 21 | } |
| 22 | |||
| 23 | #endif | ||
diff --git a/keyboards/bantam44/config.h b/keyboards/bantam44/config.h index b468b28cc..6cff8b289 100644 --- a/keyboards/bantam44/config.h +++ b/keyboards/bantam44/config.h | |||
| @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #ifndef CONFIG_H | 18 | #pragma once |
| 19 | #define CONFIG_H | ||
| 20 | 19 | ||
| 21 | #include "config_common.h" | 20 | #include "config_common.h" |
| 22 | 21 | ||
| @@ -72,5 +71,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 72 | //#define NO_ACTION_ONESHOT | 71 | //#define NO_ACTION_ONESHOT |
| 73 | //#define NO_ACTION_MACRO | 72 | //#define NO_ACTION_MACRO |
| 74 | //#define NO_ACTION_FUNCTION | 73 | //#define NO_ACTION_FUNCTION |
| 75 | |||
| 76 | #endif | ||
