diff --git a/gateway/include/Protocol_Doorbell.h b/gateway/include/Protocol_Doorbell.h index 90444bf..1cd2478 100644 --- a/gateway/include/Protocol_Doorbell.h +++ b/gateway/include/Protocol_Doorbell.h @@ -1,4 +1,7 @@ #pragma once + +#if ENABLE_DOORBELL + #include "Protocol.h" #define BIT_LENGTH 40 @@ -56,3 +59,4 @@ private: interrupts(); } } doorbell; +#endif \ No newline at end of file diff --git a/gateway/include/devices.h b/gateway/include/devices.h index a70c97a..f6c2a80 100644 --- a/gateway/include/devices.h +++ b/gateway/include/devices.h @@ -121,6 +121,7 @@ Command* commands[] = { .addPreconfigured(HaESP::heapStats) .addPreconfigured(HaESP::restartInfo) .build(), +#if ENABLE_DOORBELL Builder