Browse Source

Disable SSDPDevice class instantiation if no SSDP support

fastled
Xose Pérez 7 years ago
parent
commit
d6b7743bdd
2 changed files with 6 additions and 4 deletions
  1. +3
    -3
      code/espurna/libs/SSDPDevice.cpp
  2. +3
    -1
      code/espurna/libs/SSDPDevice.h

+ 3
- 3
code/espurna/libs/SSDPDevice.cpp View File

@ -1,6 +1,4 @@
//
//
//
#if SSDP_SUPPORT
#include "SSDPDevice.h"
#include "lwip/igmp.h"
@ -374,3 +372,5 @@ void SSDPDeviceClass::setTTL(const uint8_t ttl) {
}
SSDPDeviceClass SSDPDevice;
#endif

+ 3
- 1
code/espurna/libs/SSDPDevice.h View File

@ -1,4 +1,4 @@
// SSDPDevice.h
#if SSDP_SUPPORT // SSDP_SUPPORT
#ifndef _SSDPDEVICE_h
#define _SSDPDEVICE_h
@ -194,3 +194,5 @@ public:
extern SSDPDeviceClass SSDPDevice;
#endif
#endif // SSDP_SUPPORT

Loading…
Cancel
Save