better unit test logging
This commit is contained in:
parent
1ae3334980
commit
26f85c4e11
|
@ -155,7 +155,7 @@ AirmassResult getSpeedDensityAirmass(float map DECLARE_ENGINE_PARAMETER_SUFFIX)
|
|||
return {};
|
||||
}
|
||||
#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);
|
||||
#endif /*EFI_PRINTF_FUEL_DETAILS */
|
||||
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
#include "efi_gpio.h"
|
||||
#endif /* EFI_SIMULATOR */
|
||||
|
||||
#if EFI_PRINTF_FUEL_DETAILS
|
||||
bool printSchedulerDebug = true;
|
||||
#endif EFI_PRINTF_FUEL_DETAILS
|
||||
|
||||
#if EFI_SIGNAL_EXECUTOR_SLEEP
|
||||
|
||||
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) {
|
||||
#if EFI_PRINTF_FUEL_DETAILS
|
||||
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,
|
||||
if (printSchedulerDebug) {
|
||||
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());
|
||||
} else {
|
||||
} else {
|
||||
// printf("exec cb=%d p=%d\r\n", (int)scheduling->callback, (int)scheduling->param);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* EFI_SIMULATOR */
|
||||
#endif // EFI_PRINTF_FUEL_DETAILS
|
||||
scheduling->action.execute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue