human brain does need sleep
This commit is contained in:
parent
07727f5d0a
commit
7cc41dfa75
|
@ -268,7 +268,7 @@ void TriggerWaveform::addEvent(angle_t angle, TriggerWheel const channelIndex, T
|
|||
if (wave.phaseCount > 0) {
|
||||
if (angle <= previousAngle) {
|
||||
warning(CUSTOM_ERR_TRG_ANGLE_ORDER, "invalid angle order %s %s: new=%.2f/%f and prev=%.2f/%f, size=%d",
|
||||
getTrigger_wheel_e(channelIndex),
|
||||
getTriggerWheel(channelIndex),
|
||||
getTrigger_value_e(state),
|
||||
angle, angle * getCycleDuration(),
|
||||
previousAngle, previousAngle * getCycleDuration(),
|
||||
|
@ -807,16 +807,4 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e triggerOperatio
|
|||
warning(CUSTOM_ERR_BOTH_FRONTS_REQUIRED, "trigger: both fronts required");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const char *getTriggerWheel(TriggerWheel value){
|
||||
switch(value) {
|
||||
case TriggerWheel::T_PRIMARY:
|
||||
return "T_PRIMARY";
|
||||
case TriggerWheel::T_SECONDARY:
|
||||
return "T_SECONDARY";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -19,8 +19,6 @@
|
|||
#define TRIGGER_GAP_DEVIATION_LOW (1.0f - TRIGGER_GAP_DEVIATION)
|
||||
#define TRIGGER_GAP_DEVIATION_HIGH (1.0f + TRIGGER_GAP_DEVIATION)
|
||||
|
||||
const char *getTriggerWheel(TriggerWheel value);
|
||||
|
||||
#if EFI_ENABLE_ASSERTS
|
||||
#define assertAngleRange(angle, msg, code) if (angle > 10000000 || angle < -10000000) { firmwareError(code, "angle range %s %.2f", msg, angle);angle = 0;}
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue