From 0254a141df2da069f79bcbf3473d5a901d70f24e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 14 Oct 2021 15:17:30 -0400 Subject: [PATCH] Whatever we call it, no matter how we do it - we need live data / remote view into rusEFI actual state #3353 progress --- firmware/console/binary/tunerstudio.cpp | 2 ++ unit_tests/global_mocks.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 56c62424a6..69b95f17d7 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -240,6 +240,8 @@ static const void * getStructAddr(int structId) { return static_cast(&engine->triggerCentral); case LDS_TRIGGER_STATE_STATE_INDEX: return static_cast(&engine->triggerCentral.triggerState); + case LDS_AC_STATE: + return static_cast(&engine->acState); #if EFI_ELECTRONIC_THROTTLE_BODY case LDS_ETB_PID_STATE_INDEX: return engine->etbControllers[0]->getPidState(); diff --git a/unit_tests/global_mocks.cpp b/unit_tests/global_mocks.cpp index 78d9953122..1f3ce3f275 100644 --- a/unit_tests/global_mocks.cpp +++ b/unit_tests/global_mocks.cpp @@ -12,6 +12,10 @@ efitimeus_t getTimeNowUs(void) { return timeNowUs; } +efitimesec_t getTimeNowSeconds(void) { + return getTimeNowUs() / 1000 / 1000; +} + efitick_t getTimeNowNt(void) { return getTimeNowUs() * US_TO_NT_MULTIPLIER; }