senddata.cpp: fix missing }

This commit is contained in:
cyberman54 2022-11-06 15:16:28 +01:00
parent 4015e9e989
commit e5cc72fb1c

View File

@ -96,9 +96,8 @@ void sendData() {
#if !(PAYLOAD_OPENSENSEBOX) #if !(PAYLOAD_OPENSENSEBOX)
payload.addCount(count.wifi_count, MAC_SNIFF_WIFI); payload.addCount(count.wifi_count, MAC_SNIFF_WIFI);
if (cfg.blescan) { if (cfg.blescan)
payload.addCount(count.ble_count, MAC_SNIFF_BLE); payload.addCount(count.ble_count, MAC_SNIFF_BLE);
}
#endif #endif
#if (HAS_GPS) #if (HAS_GPS)
@ -114,7 +113,7 @@ void sendData() {
#if (PAYLOAD_OPENSENSEBOX) #if (PAYLOAD_OPENSENSEBOX)
payload.addCount(count.wifi_count, MAC_SNIFF_WIFI); payload.addCount(count.wifi_count, MAC_SNIFF_WIFI);
if (cfg.blescan) { if (cfg.blescan)
payload.addCount(count.ble_count, MAC_SNIFF_BLE); payload.addCount(count.ble_count, MAC_SNIFF_BLE);
#endif #endif
@ -199,9 +198,9 @@ void sendData() {
bitmask &= ~mask; bitmask &= ~mask;
mask <<= 1; mask <<= 1;
} // while (bitmask) } // while (bitmask)
} // sendData() } // sendData()
void flushQueues(void) { void flushQueues(void) {
rcmd_queuereset(); rcmd_queuereset();
#if (HAS_LORA) #if (HAS_LORA)
lora_queuereset(); lora_queuereset();
@ -212,9 +211,9 @@ void sendData() {
#ifdef HAS_MQTT #ifdef HAS_MQTT
mqtt_queuereset(); mqtt_queuereset();
#endif #endif
} }
bool allQueuesEmtpy(void) { bool allQueuesEmtpy(void) {
uint32_t rc = rcmd_queuewaiting(); uint32_t rc = rcmd_queuewaiting();
#if (HAS_LORA) #if (HAS_LORA)
rc += lora_queuewaiting(); rc += lora_queuewaiting();
@ -226,4 +225,4 @@ void sendData() {
rc += mqtt_queuewaiting(); rc += mqtt_queuewaiting();
#endif #endif
return (rc == 0) ? true : false; return (rc == 0) ? true : false;
} }