diff --git a/things/Device.h b/things/Device.h index 6c72aef..5ff36b5 100644 --- a/things/Device.h +++ b/things/Device.h @@ -1,5 +1,4 @@ -#ifndef DEVICE_H -#define DEVICE_H +#pragma once class Device { public: @@ -8,5 +7,3 @@ class Device { virtual void deviceRegister() = 0; virtual void deviceLoop() = 0; }; - -#endif diff --git a/things/DeviceDht.h b/things/DeviceDht.h index b48eb71..1d09e3b 100644 --- a/things/DeviceDht.h +++ b/things/DeviceDht.h @@ -1,5 +1,4 @@ -#ifndef DEVICEDHT_H -#define DEVICEDHT_H +#pragma once #include "Device.h" #include @@ -26,5 +25,3 @@ class DeviceDht : public Device { HomieNode temperatureNode{"temperature", "temperature"}; HomieNode heatindexNode{"heatindex", "heatindex"}; }; - -#endif diff --git a/things/DeviceIrRx.h b/things/DeviceIrRx.h index 7cb9a15..93597be 100644 --- a/things/DeviceIrRx.h +++ b/things/DeviceIrRx.h @@ -1,5 +1,4 @@ -#ifndef DEVICEIRRX_H -#define DEVICEIRRX_H +#pragma once #include "Device.h" #include @@ -21,5 +20,3 @@ class DeviceIrRx : public Device { decode_results results; HomieNode irRxNode = HomieNode("irrx", "irrx"); }; - -#endif diff --git a/things/DeviceIrTx.h b/things/DeviceIrTx.h index 2bca4d3..e23a830 100644 --- a/things/DeviceIrTx.h +++ b/things/DeviceIrTx.h @@ -1,5 +1,4 @@ -#ifndef DEVICEIRTX_H -#define DEVICEIRTX_H +#pragma once #include "Device.h" #include @@ -19,5 +18,3 @@ class DeviceIrTx : public Device { bool irTxHandler(String message); HomieNode irTxNode = HomieNode("irtx", "irtx"); }; - -#endif diff --git a/things/DeviceLdr.h b/things/DeviceLdr.h index 446f310..14befb4 100644 --- a/things/DeviceLdr.h +++ b/things/DeviceLdr.h @@ -1,5 +1,4 @@ -#ifndef DEVICELDR_H -#define DEVICELDR_H +#pragma once #include "Device.h" #include @@ -19,5 +18,3 @@ class DeviceLdr : public Device { int ldr = 0; HomieNode ldrNode = HomieNode("ldr", "ldr"); }; - -#endif diff --git a/things/DeviceLed.h b/things/DeviceLed.h index edb10b5..ca89861 100644 --- a/things/DeviceLed.h +++ b/things/DeviceLed.h @@ -1,5 +1,4 @@ -#ifndef DEVICELED_H -#define DEVICELED_H +#pragma once #include "Device.h" #include @@ -25,5 +24,3 @@ class DeviceLed : public Device { bool ledColorHandler(String message); HomieNode ledNode{"led", "rgb"}; }; - -#endif