From 951155a1ee4409c9724af26690f666255bc3b0c7 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Tue, 8 Jan 2019 12:14:55 +0100 Subject: [PATCH] Fix compile error when both RF_SUPPORT and API_SUPPORT are enabled --- code/espurna/rfbridge.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/espurna/rfbridge.ino b/code/espurna/rfbridge.ino index aa702c58..0734e861 100644 --- a/code/espurna/rfbridge.ino +++ b/code/espurna/rfbridge.ino @@ -555,6 +555,7 @@ void _rfbMqttCallback(unsigned int type, const char * topic, const char * payloa void _rfbAPISetup() { + #if not RF_SUPPORT apiRegister(MQTT_TOPIC_RFOUT, [](char * buffer, size_t len) { snprintf_P(buffer, len, PSTR("OK")); @@ -563,6 +564,7 @@ void _rfbAPISetup() { _rfbParseCode((char *) payload); } ); + #endif // RF_SUPPORT apiRegister(MQTT_TOPIC_RFLEARN, [](char * buffer, size_t len) {