From fc21a1d50192f32fd7d6d9cb05e7d5e333cb3142 Mon Sep 17 00:00:00 2001 From: jgromes Date: Tue, 30 Jun 2020 10:45:11 +0200 Subject: [PATCH] [HTTP] Reworked driver exclusion --- src/protocols/HTTP/HTTP.cpp | 3 +++ src/protocols/HTTP/HTTP.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/protocols/HTTP/HTTP.cpp b/src/protocols/HTTP/HTTP.cpp index 00b046d2..6f4cd23d 100644 --- a/src/protocols/HTTP/HTTP.cpp +++ b/src/protocols/HTTP/HTTP.cpp @@ -1,4 +1,5 @@ #include "HTTP.h" +#if !defined(RADIOLIB_EXCLUDE_HTTP) HTTPClient::HTTPClient(TransportLayer* tl, uint16_t port) { _tl = tl; @@ -216,3 +217,5 @@ int16_t HTTPClient::post(const char* url, const char* content, String& response, statusStr[3] = 0x00; return(atoi(statusStr)); } + +#endif diff --git a/src/protocols/HTTP/HTTP.h b/src/protocols/HTTP/HTTP.h index 118df7ec..edc7d6f1 100644 --- a/src/protocols/HTTP/HTTP.h +++ b/src/protocols/HTTP/HTTP.h @@ -1,4 +1,4 @@ -#ifndef _RADIOLIB_HTTP_H +#if !defined(_RADIOLIB_HTTP_H) && !defined(RADIOLIB_EXCLUDE_HTTP) #define _RADIOLIB_HTTP_H #include "../../TypeDef.h"