Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit a063da51 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: check for allowed adas combination with MT transmission

parent 959a3fa2
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ namespace TUGraz.VectoCore.Models.Declaration
throw new VectoException("ADAS combination {0} not allowed for AT transmissions", entry.ID);
}
if (gbxType.ManualTransmission() && !entry.AllowedForMT) {
if (gbxType == GearboxType.MT && !entry.AllowedForMT) {
throw new VectoException("ADAS combination {0} not allowed for MT transmissions", entry.ID);
}
......@@ -140,7 +140,7 @@ namespace TUGraz.VectoCore.Models.Declaration
throw new VectoException("ADAS combination {0} not allowed for AT transmissions", entry.ID);
}
if (gbxType.ManualTransmission() && !entry.AllowedForMT) {
if (gbxType == GearboxType.MT && !entry.AllowedForMT) {
throw new VectoException("ADAS combination {0} not allowed for MT transmissions", entry.ID);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment