Skip to content

Commit

Permalink
Fix BLE scan storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Aug 22, 2024
1 parent 8bde7ea commit 3db8368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/firmware/src/tasks/storage_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void storage_write_ble_scan_results(uint8_t *found_devices, uint32_t num_devices
const storage_item_t storage_item = { .timestamp = rounded_timestamp, .value = ble_data_index, .type = STORAGE_TYPE_BLE_SCAN };
ble_data[ble_data_index].data[0] = (uint8_t)num_devices;
memcpy(ble_data[ble_data_index].data + 1, found_devices, num_devices);
ble_data[ble_data_index].length = num_devices;
ble_data[ble_data_index].length = 1 + num_devices;
ble_data_index = (ble_data_index + 1) % MAX_NUM_DATA_ITEMS;
xQueueSendToBack(storage_queue, &storage_item, 0);
}
Expand Down

0 comments on commit 3db8368

Please sign in to comment.