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
#define DEVICE_H
#pragma once
class Device {
public:
@ -8,5 +7,3 @@ class Device {
virtual void deviceRegister() = 0;
virtual void deviceLoop() = 0;
};
#endif

View File

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

View File

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

View File

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

View File

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

View File

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