From 2168e7f383949cb9d89fa579ea312620d3a0ad53 Mon Sep 17 00:00:00 2001 From: Kamiccolo Date: Tue, 16 Mar 2021 13:21:58 +0200 Subject: [PATCH] fix: typo in definitions and command_impl mircrosecond -> microsecond --- sdk_core/include/livox_def.h | 2 +- sdk_core/src/command_handler/command_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_core/include/livox_def.h b/sdk_core/include/livox_def.h index cd1582a..d627db3 100644 --- a/sdk_core/include/livox_def.h +++ b/sdk_core/include/livox_def.h @@ -643,7 +643,7 @@ typedef struct { uint8_t month; uint8_t day; uint8_t hour; - uint32_t mircrosecond; + uint32_t microsecond; } LidarSetUtcSyncTimeRequest; /** diff --git a/sdk_core/src/command_handler/command_impl.cpp b/sdk_core/src/command_handler/command_impl.cpp index 486b4ae..77d6876 100644 --- a/sdk_core/src/command_handler/command_impl.cpp +++ b/sdk_core/src/command_handler/command_impl.cpp @@ -209,7 +209,7 @@ bool ParseRmcTime(const char* rmc, uint16_t rmc_len, LidarSetUtcSyncTimeRequest* } utc_time_req->hour = hour; - utc_time_req->mircrosecond = (minute * 60 * 1000 + second * 1000) * 1000; + utc_time_req->microsecond = (minute * 60 * 1000 + second * 1000) * 1000; return true; } -- 2.52.0