From ab801bceb385b800c0d75afb4befa4b365a7042d Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 25 Apr 2024 12:43:31 -0700 Subject: [PATCH] logic analyzer type correctness --- firmware/development/logic_analyzer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/development/logic_analyzer.cpp b/firmware/development/logic_analyzer.cpp index af50750f9a..7dcae96387 100644 --- a/firmware/development/logic_analyzer.cpp +++ b/firmware/development/logic_analyzer.cpp @@ -70,7 +70,7 @@ public: static WaveReader readers[LOGIC_ANALYZER_CHANNEL_COUNT]; static void riseCallback(WaveReader *reader) { - efitick_t nowUs = getTimeNowUs(); + efitimeus_t nowUs = getTimeNowUs(); reader->riseEventCounter++; reader->lastActivityTimeUs = nowUs; assertIsrContext(ObdCode::CUSTOM_ERR_6670); @@ -84,13 +84,13 @@ static void riseCallback(WaveReader *reader) { } void WaveReader::onFallEvent() { - efitick_t nowUs = getTimeNowUs(); + efitimeus_t nowUs = getTimeNowUs(); fallEventCounter++; lastActivityTimeUs = nowUs; assertIsrContext(ObdCode::CUSTOM_ERR_6670); addEngineSnifferLogicAnalyzerEvent(laIndex, FrontDirection::DOWN); - efitick_t width = nowUs - widthEventTimeUs; + efitimeus_t width = nowUs - widthEventTimeUs; last_wave_high_widthUs = width; #if EFI_SHAFT_POSITION_INPUT