replace preprocessor syntax

This commit is contained in:
Ronald Schaten 2016-04-22 22:32:36 +02:00
parent 50c38f4060
commit d79d445a3e
6 changed files with 6 additions and 24 deletions

View File

@ -1,5 +1,4 @@
#ifndef DEVICE_H #pragma once
#define DEVICE_H
class Device { class Device {
public: public:
@ -8,5 +7,3 @@ class Device {
virtual void deviceRegister() = 0; virtual void deviceRegister() = 0;
virtual void deviceLoop() = 0; virtual void deviceLoop() = 0;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DEVICEDHT_H #pragma once
#define DEVICEDHT_H
#include "Device.h" #include "Device.h"
#include <Homie.h> #include <Homie.h>
@ -26,5 +25,3 @@ class DeviceDht : public Device {
HomieNode temperatureNode{"temperature", "temperature"}; HomieNode temperatureNode{"temperature", "temperature"};
HomieNode heatindexNode{"heatindex", "heatindex"}; HomieNode heatindexNode{"heatindex", "heatindex"};
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DEVICEIRRX_H #pragma once
#define DEVICEIRRX_H
#include "Device.h" #include "Device.h"
#include <Homie.h> #include <Homie.h>
@ -21,5 +20,3 @@ class DeviceIrRx : public Device {
decode_results results; decode_results results;
HomieNode irRxNode = HomieNode("irrx", "irrx"); HomieNode irRxNode = HomieNode("irrx", "irrx");
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DEVICEIRTX_H #pragma once
#define DEVICEIRTX_H
#include "Device.h" #include "Device.h"
#include <Homie.h> #include <Homie.h>
@ -19,5 +18,3 @@ class DeviceIrTx : public Device {
bool irTxHandler(String message); bool irTxHandler(String message);
HomieNode irTxNode = HomieNode("irtx", "irtx"); HomieNode irTxNode = HomieNode("irtx", "irtx");
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DEVICELDR_H #pragma once
#define DEVICELDR_H
#include "Device.h" #include "Device.h"
#include <Homie.h> #include <Homie.h>
@ -19,5 +18,3 @@ class DeviceLdr : public Device {
int ldr = 0; int ldr = 0;
HomieNode ldrNode = HomieNode("ldr", "ldr"); HomieNode ldrNode = HomieNode("ldr", "ldr");
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DEVICELED_H #pragma once
#define DEVICELED_H
#include "Device.h" #include "Device.h"
#include <Homie.h> #include <Homie.h>
@ -25,5 +24,3 @@ class DeviceLed : public Device {
bool ledColorHandler(String message); bool ledColorHandler(String message);
HomieNode ledNode{"led", "rgb"}; HomieNode ledNode{"led", "rgb"};
}; };
#endif