[HTTP] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:45:11 +02:00
parent 55ebbc3488
commit fc21a1d501
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_HTTP_H
#if !defined(_RADIOLIB_HTTP_H) && !defined(RADIOLIB_EXCLUDE_HTTP)
#define _RADIOLIB_HTTP_H
#include "../../TypeDef.h"