From b2d2226d5db999f70bf0b09b2a03d4db9637a2ee Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 22 Jun 2020 17:54:42 +0200 Subject: [PATCH] Fix compile error Fix compile error (#8758) --- tasmota/xsns_61_MI_NRF24.ino | 12 ++++++++---- tasmota/xsns_62_MI_HM10.ino | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tasmota/xsns_61_MI_NRF24.ino b/tasmota/xsns_61_MI_NRF24.ino index 685c643ef..e6a504826 100644 --- a/tasmota/xsns_61_MI_NRF24.ino +++ b/tasmota/xsns_61_MI_NRF24.ino @@ -584,13 +584,17 @@ bool MINRFhandleBeacon(scan_entry_t * entry, uint32_t offset){ * @brief increase beacon timer every second and process the result * */ -void MINRFbeaconCounter(void){ - if(MINRF.beacon.active) { +void MINRFbeaconCounter(void) { + if (MINRF.beacon.active) { MINRF.beacon.time++; +/* char stemp[20]; snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time); AddLog_P2(LOG_LEVEL_DEBUG, stemp); RulesProcessEvent(stemp); +*/ + Response_P(PSTR("{%s:{\"Beacon\":%u}}"), D_CMND_NRF, MINRF.beacon.time); + XdrvRulesProcess(); } } @@ -723,10 +727,10 @@ void MINRFAddKey(char* payload){ } /** - * @brief Convert combined key-MAC-string to + * @brief Convert combined key-MAC-string to * * @param _string input string in format: AABBCCDDEEFF... (upper case!), must be 44 chars!! - * @param _mac target byte array with fixed size of 16 + 6 + * @param _mac target byte array with fixed size of 16 + 6 */ void MINRFKeyMACStringToBytes(char* _string,uint8_t _keyMac[]) { //uppercase uint32_t index = 0; diff --git a/tasmota/xsns_62_MI_HM10.ino b/tasmota/xsns_62_MI_HM10.ino index 6655a0c87..6b5a797eb 100644 --- a/tasmota/xsns_62_MI_HM10.ino +++ b/tasmota/xsns_62_MI_HM10.ino @@ -977,11 +977,15 @@ void HM10_TaskEvery100ms(){ } } -void HM10StatusInfo(){ +void HM10StatusInfo() { +/* char stemp[20]; snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size()); AddLog_P2(LOG_LEVEL_INFO, stemp); RulesProcessEvent(stemp); +*/ + Response_P(PSTR("{%s:{\"found\":%u}}"), D_CMND_HM10, MIBLEsensors.size()); + XdrvRulesProcess(); } /**