From 6970c59ff66a3a2248ab074e4a7f296bb6cc232e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Wed, 30 Sep 2020 23:42:34 -0700 Subject: [PATCH] cpplint header guard fixups --- src/kaleidoscope/device/dygma/raise/TWI.h | 2 ++ src/kaleidoscope/device/keyboardio/twi.h | 6 ++---- src/kaleidoscope/plugin/Turbo.h | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/kaleidoscope/device/dygma/raise/TWI.h b/src/kaleidoscope/device/dygma/raise/TWI.h index ba191b09..3e365f7a 100644 --- a/src/kaleidoscope/device/dygma/raise/TWI.h +++ b/src/kaleidoscope/device/dygma/raise/TWI.h @@ -16,6 +16,8 @@ * this program. If not, see . */ +#pragma once + #ifdef ARDUINO_SAMD_RAISE #include diff --git a/src/kaleidoscope/device/keyboardio/twi.h b/src/kaleidoscope/device/keyboardio/twi.h index 5b22cc40..773ce9cb 100644 --- a/src/kaleidoscope/device/keyboardio/twi.h +++ b/src/kaleidoscope/device/keyboardio/twi.h @@ -16,10 +16,9 @@ with this program. If not, see . */ -#ifdef __AVR__ +#pragma once -#ifndef twi_h -#define twi_h +#ifdef __AVR__ #ifndef KALEIDOSCOPE_VIRTUAL_BUILD @@ -56,4 +55,3 @@ void twi_releaseBus(void); #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif -#endif diff --git a/src/kaleidoscope/plugin/Turbo.h b/src/kaleidoscope/plugin/Turbo.h index f5d67e4f..3a2a74d4 100644 --- a/src/kaleidoscope/plugin/Turbo.h +++ b/src/kaleidoscope/plugin/Turbo.h @@ -19,6 +19,8 @@ #include "kaleidoscope/Runtime.h" #include +#pragma once + #define Key_Turbo Key{kaleidoscope::ranges::TURBO } namespace kaleidoscope {