diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-05-05 21:22:35 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-05-05 21:22:35 +0200 |
commit | c03474ea5ad656e0f2f89a8866a8ac651bd6bc76 (patch) | |
tree | 5d59660aaf66bbfcedff198a88393e435e6bba34 | |
parent | 8042cd7feb68a13efee891ae58308b1326292778 (diff) | |
download | dabmod-c03474ea5ad656e0f2f89a8866a8ac651bd6bc76.tar.gz dabmod-c03474ea5ad656e0f2f89a8866a8ac651bd6bc76.tar.bz2 dabmod-c03474ea5ad656e0f2f89a8866a8ac651bd6bc76.zip |
Update common: make remotecontrol optional
-rw-r--r-- | lib/Globals.cpp | 2 | ||||
-rw-r--r-- | lib/RemoteControl.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Globals.cpp b/lib/Globals.cpp index 6be26ec..6bd38fb 100644 --- a/lib/Globals.cpp +++ b/lib/Globals.cpp @@ -32,5 +32,7 @@ // the RC needs logging, and needs to be initialised later. Logger etiLog; +#if ENABLE_REMOTECONTROL RemoteControllers rcs; +#endif // ENABLE_REMOTECONTROL diff --git a/lib/RemoteControl.h b/lib/RemoteControl.h index 26f30d9..7dd763d 100644 --- a/lib/RemoteControl.h +++ b/lib/RemoteControl.h @@ -31,6 +31,8 @@ # include "config.h" #endif +#define ENABLE_REMOTECONTROL 1 + #if defined(HAVE_ZEROMQ) # include "zmq.hpp" #endif |