1
0
Fork 0
mirror of https://github.com/lumapu/ahoy.git synced 2025-08-11 08:16:46 +02:00

avoid compile warning about uninitialized pointers

This commit is contained in:
Stephan Enderlein 2023-07-15 21:32:52 +02:00
commit 41ce98d2df

View file

@ -701,7 +701,7 @@ class Web {
// NRF Statistics // NRF Statistics
stat = mApp->getStatistics(); stat = mApp->getStatistics();
uint32_t *nrfSendCnt, *nrfRetransmits; uint32_t *nrfSendCnt=NULL, *nrfRetransmits=NULL;
mApp->getNrfRadioCounters(nrfSendCnt, nrfRetransmits); mApp->getNrfRadioCounters(nrfSendCnt, nrfRetransmits);
metrics += radioStatistic(F("rx_success"), stat->rxSuccess); metrics += radioStatistic(F("rx_success"), stat->rxSuccess);
metrics += radioStatistic(F("rx_fail"), stat->rxFail); metrics += radioStatistic(F("rx_fail"), stat->rxFail);