unit_tests: mapAveragingTriggerCallback causes segmentation fault #2858
This commit is contained in:
parent
f04cb1ceac
commit
6605935015
|
@ -181,7 +181,7 @@ float getCrankshaftAngleNt(efitick_t timeNt DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|||
#define getRevolutionCounter() ENGINE(rpmCalculator.getRevolutionCounterM())
|
||||
|
||||
#if EFI_ENGINE_SNIFFER
|
||||
#define addEngineSnifferEvent(name, msg) if (ENGINE(isEngineChartEnabled)) { waveChart.addEvent3((name), (msg)); }
|
||||
#define addEngineSnifferEvent(name, msg) { efiAssertVoid(OBD_PCM_Processor_Fault, engine!=NULL, "engine ptr missing"); if (ENGINE(isEngineChartEnabled)) { waveChart.addEvent3((name), (msg)); } }
|
||||
#else
|
||||
#define addEngineSnifferEvent(n, msg) {}
|
||||
#endif /* EFI_ENGINE_SNIFFER */
|
||||
|
|
|
@ -46,6 +46,8 @@ struct scheduling_s {
|
|||
virtual_timer_t timer;
|
||||
#endif /* EFI_SIGNAL_EXECUTOR_SLEEP */
|
||||
|
||||
DECLARE_ENGINE_PTR;
|
||||
|
||||
/**
|
||||
* timestamp represented as 64-bit value of ticks since MCU start
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue