hci_dunp_windows_fs: fix timestamps

This commit is contained in:
Matthias Ringwald 2023-09-07 10:39:54 +02:00
parent e4cf526a15
commit 35d4a926ea
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- AVRCP: reject incoming second l2cap connection
- GATT Client: ignore notifications/indications until re-encrypted for bonded device without ENABLE_LE_PROACTIVE_AUTHENTICATION
- btstack_flash_bank: support alignment larger than 4
- windows: fix timestamps in packet logs
-
### Changed
- btstack_crypto: allow MBEDTLS config via MBEDTLS_CONFIG_FILE
- remove old Zephyr 1.9 port

View File

@ -114,8 +114,8 @@ static void hci_dump_windows_fs_log_packet(uint8_t packet_type, uint8_t in, uint
now_time.LowPart = file_time.dwLowDateTime;
now_time.HighPart = file_time.dwHighDateTime;
tv_sec = (uint32_t) ((now_time.QuadPart / 10000) - EPOCH_DIFF);
tv_us = (now_time.QuadPart % 10000) / 10;
tv_sec = (uint32_t) ((now_time.QuadPart / 10000000ULL) - EPOCH_DIFF);
tv_us = (now_time.QuadPart % 10000000ULL) / 10ULL;
uint16_t header_len = 0;
switch (dump_format){