parent
fda7a3a775
commit
8024fe2b1b
|
@ -874,7 +874,9 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels) {
|
|||
|
||||
void updateCurrentEnginePhase() {
|
||||
if (auto phase = engine->triggerCentral.getCurrentEnginePhase(getTimeNowNt())) {
|
||||
tsOutputChannels.currentEnginePhase = phase.Value - tdcPosition();
|
||||
angle_t angle = phase.Value - tdcPosition();
|
||||
wrapAngle(angle, "updateCurrentEnginePhase", CUSTOM_ERR_6555);
|
||||
tsOutputChannels.currentEnginePhase = angle;
|
||||
} else {
|
||||
tsOutputChannels.currentEnginePhase = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue