guard to help kinetis

This commit is contained in:
Andrey 2023-04-30 01:49:21 -04:00
parent 2b6fd2315c
commit 6656c2ae88
1 changed files with 2 additions and 0 deletions

View File

@ -66,8 +66,10 @@ expected<float> readGppwmChannel(gppwm_channel_e channel) {
return (float)engine->outputChannels.gppwmOutput[2];
case GPPWM_GppwmOutput4:
return (float)engine->outputChannels.gppwmOutput[3];
#if EFI_VEHICLE_SPEED
case GPPWM_DetectedGear:
return engine->module<GearDetector>()->getCurrentGear();
#endif // EFI_VEHICLE_SPEED
}
return unexpected;