This commit is contained in:
rusefi 2018-09-10 22:42:24 -04:00
parent 8d111fbd98
commit eda2f08c38
2 changed files with 3 additions and 10 deletions

View File

@ -60,17 +60,12 @@ Executor::Executor() {
queue.setLateDelay(US2NT(100));
}
/**
* callback would be executed either on ISR thread or current thread if we would need to execute right away
*/
void Executor::scheduleByTimestamp(scheduling_s *scheduling, efitimeus_t timeUs, schfunc_t callback,
void *param) {
scheduleCounter++;
// if (delayUs < 0) {
// firmwareError(OBD_PCM_Processor_Fault, "Negative delayUs %s: %d", prefix, delayUs);
// return;
// }
// if (delayUs == 0) {
// callback(param);
// return;
// }
bool alreadyLocked = true;
if (!reentrantFlag) {
// this would guard the queue and disable interrupts

View File

@ -362,8 +362,6 @@ void initRpmCalculator(Logging *sharedLogger, Engine *engine) {
}
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
// tdcScheduler[0].name = "tdc0";
// tdcScheduler[1].name = "tdc1";
addTriggerEventListener(tdcMarkCallback, "chart TDC mark", engine);
#endif