diff --git a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp index 121f715e6c..a2b5f03c50 100644 --- a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp @@ -66,8 +66,10 @@ expected 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()->getCurrentGear(); +#endif // EFI_VEHICLE_SPEED } return unexpected;