From 426bc8720e8dd299fd594c92e13e459a50eff375 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 11 Jun 2023 23:23:17 -0400 Subject: [PATCH] console "spark 1" bench hands up proteus #5320 i feel lucky! --- firmware/console/binary/tooth_logger.cpp | 1 + firmware/controllers/sensors/impl/software_knock.cpp | 2 +- firmware/hw_layer/adc/adc_inputs.cpp | 2 +- firmware/util/loggingcentral.cpp | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/console/binary/tooth_logger.cpp b/firmware/console/binary/tooth_logger.cpp index 23a50e58b2..b43a1e6219 100644 --- a/firmware/console/binary/tooth_logger.cpp +++ b/firmware/console/binary/tooth_logger.cpp @@ -237,6 +237,7 @@ static void SetNextCompositeEntry(efitick_t timestamp) { #endif // EFI_UNIT_TEST void LogTriggerTooth(trigger_event_e tooth, efitick_t timestamp) { + efiAssertVoid(ObdCode::CUSTOM_ERR_6650, assertRemainingStack(), "l-t-t"); // bail if we aren't enabled if (!ToothLoggerEnabled) { return; diff --git a/firmware/controllers/sensors/impl/software_knock.cpp b/firmware/controllers/sensors/impl/software_knock.cpp index 52f0309c8b..3054273934 100644 --- a/firmware/controllers/sensors/impl/software_knock.cpp +++ b/firmware/controllers/sensors/impl/software_knock.cpp @@ -133,7 +133,7 @@ void onStartKnockSampling(uint8_t cylinderNumber, float samplingSeconds, uint8_t lastKnockSampleTime = getTimeNowNt(); } -class KnockThread : public ThreadController<256> { +class KnockThread : public ThreadController { public: KnockThread() : ThreadController("knock", PRIO_KNOCK_PROCESS) {} void ThreadTask() override; diff --git a/firmware/hw_layer/adc/adc_inputs.cpp b/firmware/hw_layer/adc/adc_inputs.cpp index fd73341eba..6599d8bc11 100644 --- a/firmware/hw_layer/adc/adc_inputs.cpp +++ b/firmware/hw_layer/adc/adc_inputs.cpp @@ -352,7 +352,7 @@ int getSlowAdcCounter() { } -class SlowAdcController : public PeriodicController<256> { +class SlowAdcController : public PeriodicController { public: SlowAdcController() : PeriodicController("ADC", PRIO_ADC, SLOW_ADC_RATE) diff --git a/firmware/util/loggingcentral.cpp b/firmware/util/loggingcentral.cpp index 8aaa1f5d10..fe30fffce9 100644 --- a/firmware/util/loggingcentral.cpp +++ b/firmware/util/loggingcentral.cpp @@ -127,7 +127,7 @@ static chibios_rt::Mailbox freeBuffers; // filledBuffers contains a queue of buffers currently waiting to be written to the output buffer static chibios_rt::Mailbox filledBuffers; -class LoggingBufferFlusher : public ThreadController<256> { +class LoggingBufferFlusher : public ThreadController { public: LoggingBufferFlusher() : ThreadController("log flush", PRIO_TEXT_LOG) { }