Browse Source

Fix compile error when both RF_SUPPORT and API_SUPPORT are enabled

sensors
Niek van der Maas 5 years ago
parent
commit
951155a1ee
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/rfbridge.ino

+ 2
- 0
code/espurna/rfbridge.ino View File

@ -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) {


Loading…
Cancel
Save