logic analyzer type correctness

This commit is contained in:
Matthew Kennedy 2024-04-25 12:43:31 -07:00 committed by rusefi
parent 93edf72814
commit ab801bceb3
1 changed files with 3 additions and 3 deletions

View File

@ -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