Browse Source

Merge pull request #1479 from Niek/rf-compile-fix-2

Fix compile error when both RF_SUPPORT and API_SUPPORT are enabled
sensors
Xose Pérez 6 years ago
committed by GitHub
parent
commit
350ebadb3d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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