better unit test logging
This commit is contained in:
parent
dd3a080d88
commit
54c9bf21ca
|
@ -155,7 +155,7 @@ AirmassResult getSpeedDensityAirmass(float map DECLARE_ENGINE_PARAMETER_SUFFIX)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
#if EFI_PRINTF_FUEL_DETAILS
|
#if EFI_PRINTF_FUEL_DETAILS
|
||||||
printf("map=%.2f adjustedMap=%.2f airMass=%.2f\t\n",
|
printf("getSpeedDensityAirmass map=%.2f adjustedMap=%.2f airMass=%.2f\t\n",
|
||||||
map, adjustedMap, engine->engineState.sd.adjustedManifoldAirPressure);
|
map, adjustedMap, engine->engineState.sd.adjustedManifoldAirPressure);
|
||||||
#endif /*EFI_PRINTF_FUEL_DETAILS */
|
#endif /*EFI_PRINTF_FUEL_DETAILS */
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
#include "efi_gpio.h"
|
#include "efi_gpio.h"
|
||||||
#endif /* EFI_SIMULATOR */
|
#endif /* EFI_SIMULATOR */
|
||||||
|
|
||||||
|
#if EFI_PRINTF_FUEL_DETAILS
|
||||||
|
bool printSchedulerDebug = true;
|
||||||
|
#endif EFI_PRINTF_FUEL_DETAILS
|
||||||
|
|
||||||
#if EFI_SIGNAL_EXECUTOR_SLEEP
|
#if EFI_SIGNAL_EXECUTOR_SLEEP
|
||||||
|
|
||||||
void SleepExecutor::scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, action_s action) {
|
void SleepExecutor::scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, action_s action) {
|
||||||
|
@ -43,14 +47,15 @@ void SleepExecutor::scheduleByTimestampNt(scheduling_s* scheduling, efitick_t ti
|
||||||
|
|
||||||
static void timerCallback(scheduling_s *scheduling) {
|
static void timerCallback(scheduling_s *scheduling) {
|
||||||
#if EFI_PRINTF_FUEL_DETAILS
|
#if EFI_PRINTF_FUEL_DETAILS
|
||||||
if (scheduling->action.getCallback() == (schfunc_t)&turnInjectionPinLow) {
|
if (printSchedulerDebug) {
|
||||||
printf("executing cb=turnInjectionPinLow p=%d sch=%d now=%d\r\n", (int)scheduling->action.getArgument(), (int)scheduling,
|
if (scheduling->action.getCallback() == (schfunc_t)&turnInjectionPinLow) {
|
||||||
|
printf("executing cb=turnInjectionPinLow p=%d sch=%d now=%d\r\n", (int)scheduling->action.getArgument(), (int)scheduling,
|
||||||
(int)getTimeNowUs());
|
(int)getTimeNowUs());
|
||||||
} else {
|
} else {
|
||||||
// printf("exec cb=%d p=%d\r\n", (int)scheduling->callback, (int)scheduling->param);
|
// printf("exec cb=%d p=%d\r\n", (int)scheduling->callback, (int)scheduling->param);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
#endif // EFI_PRINTF_FUEL_DETAILS
|
||||||
#endif /* EFI_SIMULATOR */
|
|
||||||
scheduling->action.execute();
|
scheduling->action.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue