From 858211d28c6b8e39098ba99897a476868e1f951f Mon Sep 17 00:00:00 2001 From: samparent97 Date: Sat, 20 Apr 2024 18:38:57 -0400 Subject: [PATCH] Remove line added by clangd --- firmware/mcal/raspi/periph/can.h | 3 ++- firmware/shared/comms/can/raw_can_msg.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/mcal/raspi/periph/can.h b/firmware/mcal/raspi/periph/can.h index 9527a2f3c..e88be22da 100644 --- a/firmware/mcal/raspi/periph/can.h +++ b/firmware/mcal/raspi/periph/can.h @@ -101,7 +101,8 @@ class CanBase : public shared::periph::CanBase { std::chrono::steady_clock::time_point program_start_; inline uint32_t get_tick() { - std::chrono::milliseconds elapsed_ms = std::chrono::duration_cast(end - start); + std::chrono::milliseconds elapsed_ms = std::chrono::duration_cast( + std::chrono::steady_clock::now() - start); return static_cast(elapsed_ms.count()); } diff --git a/firmware/shared/comms/can/raw_can_msg.h b/firmware/shared/comms/can/raw_can_msg.h index b0cac4f44..1e66e6590 100644 --- a/firmware/shared/comms/can/raw_can_msg.h +++ b/firmware/shared/comms/can/raw_can_msg.h @@ -4,7 +4,6 @@ #pragma once #include -#include #include #include