From 7dacb933697fb1c3fb87d671a896327c80515e55 Mon Sep 17 00:00:00 2001 From: Lurkars Date: Sun, 26 Jul 2020 19:29:20 +0200 Subject: [PATCH] bugfix: wrong index on update beacon! --- components/ena/ena-beacons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ena/ena-beacons.c b/components/ena/ena-beacons.c index baa688d..20f7fe6 100644 --- a/components/ena/ena-beacons.c +++ b/components/ena/ena-beacons.c @@ -104,6 +104,6 @@ void ena_beacon(uint32_t unix_timestamp, uint8_t *rpi, uint8_t *aem, int rssi) ESP_LOG_BUFFER_HEX_LEVEL(ENA_BEACON_LOG, temp_beacons[beacon_index].rpi, ENA_KEY_LENGTH, ESP_LOG_DEBUG); ESP_LOG_BUFFER_HEX_LEVEL(ENA_BEACON_LOG, temp_beacons[beacon_index].aem, ENA_AEM_METADATA_LENGTH, ESP_LOG_DEBUG); ESP_LOGD(ENA_BEACON_LOG, "RSSI %d", temp_beacons[beacon_index].rssi); - ena_storage_set_temp_beacon(temp_beacons_count, &temp_beacons[temp_beacons_count]); + ena_storage_set_temp_beacon(beacon_index, &temp_beacons[beacon_index]); } } \ No newline at end of file