mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-29 21:40:50 +00:00
Build option to disable remote debug
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
|
||||
#include "TimeLib.h"
|
||||
#include "Timezone.h"
|
||||
#if defined(AMS_REMOTE_DEBUG)
|
||||
#include "RemoteDebug.h"
|
||||
#endif
|
||||
#include "AmsConfiguration.h"
|
||||
#include "EntsoeA44Parser.h"
|
||||
|
||||
@@ -63,7 +65,11 @@ struct PricePart {
|
||||
|
||||
class PriceService {
|
||||
public:
|
||||
#if defined(AMS_REMOTE_DEBUG)
|
||||
PriceService(RemoteDebug*);
|
||||
#else
|
||||
PriceService(Stream*);
|
||||
#endif
|
||||
void setup(PriceServiceConfig&);
|
||||
bool loop();
|
||||
|
||||
@@ -88,7 +94,11 @@ public:
|
||||
bool save();
|
||||
|
||||
private:
|
||||
#if defined(AMS_REMOTE_DEBUG)
|
||||
RemoteDebug* debugger;
|
||||
#else
|
||||
Stream* debugger;
|
||||
#endif
|
||||
PriceServiceConfig* config = NULL;
|
||||
HTTPClient* http = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user