Fix compile error

Fix compile error (#8758)
This commit is contained in:
Theo Arends 2020-06-22 17:54:42 +02:00
parent 04ec0832fc
commit b2d2226d5d
2 changed files with 13 additions and 5 deletions

View File

@ -584,13 +584,17 @@ bool MINRFhandleBeacon(scan_entry_t * entry, uint32_t offset){
* @brief increase beacon timer every second and process the result * @brief increase beacon timer every second and process the result
* *
*/ */
void MINRFbeaconCounter(void){ void MINRFbeaconCounter(void) {
if(MINRF.beacon.active) { if (MINRF.beacon.active) {
MINRF.beacon.time++; MINRF.beacon.time++;
/*
char stemp[20]; char stemp[20];
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time); snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time);
AddLog_P2(LOG_LEVEL_DEBUG, stemp); AddLog_P2(LOG_LEVEL_DEBUG, stemp);
RulesProcessEvent(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 _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 void MINRFKeyMACStringToBytes(char* _string,uint8_t _keyMac[]) { //uppercase
uint32_t index = 0; uint32_t index = 0;

View File

@ -977,11 +977,15 @@ void HM10_TaskEvery100ms(){
} }
} }
void HM10StatusInfo(){ void HM10StatusInfo() {
/*
char stemp[20]; char stemp[20];
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size()); snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size());
AddLog_P2(LOG_LEVEL_INFO, stemp); AddLog_P2(LOG_LEVEL_INFO, stemp);
RulesProcessEvent(stemp); RulesProcessEvent(stemp);
*/
Response_P(PSTR("{%s:{\"found\":%u}}"), D_CMND_HM10, MIBLEsensors.size());
XdrvRulesProcess();
} }
/** /**