diff --git a/src/keyer.h b/src/keyer.h index 510c6b4..bc71240 100644 --- a/src/keyer.h +++ b/src/keyer.h @@ -1,5 +1,4 @@ -#ifndef KEYER_H -#define KEYER_H +#pragma once #include "settings.h" #include "sidetone.h" @@ -42,6 +41,4 @@ class Keyer final bool m_currentlyKeying{false}; bool m_currentlyPausing{false}; bool m_keyNextIambicB{false}; -}; - -#endif \ No newline at end of file +}; \ No newline at end of file diff --git a/src/settings.h b/src/settings.h index 763c0f8..ee40631 100644 --- a/src/settings.h +++ b/src/settings.h @@ -1,5 +1,4 @@ -#ifndef SETTINGS_H -#define SETTINGS_H +#pragma once #include "pico/flash.h" @@ -18,6 +17,4 @@ struct Settings { }; void store_settings(Settings &settings); -Settings read_settings(); - -#endif \ No newline at end of file +Settings read_settings(); \ No newline at end of file diff --git a/src/sidetone.h b/src/sidetone.h index e6960e3..0a2a8b2 100644 --- a/src/sidetone.h +++ b/src/sidetone.h @@ -1,5 +1,4 @@ -#ifndef SIDETONE_H -#define SIDETONE_H +#pragma once class Sidetone { @@ -11,6 +10,4 @@ class Sidetone private: Sidetone(){}; uint m_gpio{0}; -}; - -#endif \ No newline at end of file +}; \ No newline at end of file