readability

This commit is contained in:
Andrey 2022-08-31 23:29:47 -04:00
parent 4cbaddcc60
commit 6d3a6dc2f8
3 changed files with 3 additions and 3 deletions

View File

@ -370,7 +370,7 @@ bool noFiringUntilVvtSync(vvt_mode_e vvtMode) {
* This is the main trigger event handler.
* Both injection and ignition are controlled from this method.
*/
void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, float currentPhase, float nextPhase) {
void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_t currentPhase, angle_t nextPhase) {
ScopePerf perf(PE::MainTriggerCallback);
#if ! HW_CHECK_MODE

View File

@ -11,7 +11,7 @@
#include "event_registry.h"
void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, float currentPhase, float nextPhase);
void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_t currentPhase, angle_t nextPhase);
bool noFiringUntilVvtSync(vvt_mode_e vvtMode);
void startSimultaneousInjection(void* = nullptr);

View File

@ -741,7 +741,7 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
// TODO: is this logic to compute next trigger tooth angle correct?
auto nextToothIndex = triggerIndexForListeners;
float nextPhase = 0;
angle_t nextPhase = 0;
do {
// I don't love this.