[HTTP] Reworked driver exclusion
This commit is contained in:
parent
55ebbc3488
commit
fc21a1d501
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef _RADIOLIB_HTTP_H
|
||||
#if !defined(_RADIOLIB_HTTP_H) && !defined(RADIOLIB_EXCLUDE_HTTP)
|
||||
#define _RADIOLIB_HTTP_H
|
||||
|
||||
#include "../../TypeDef.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue