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

Skip to content
Snippets Groups Projects
Commit d9d23fef authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

fix: retarder data ratio in case only a dummy retarder is used

parent 12d744d6
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ namespace TUGraz.VectoCore.Models.Declaration
public RetarderData CreateGenericBusRetarderData(IRetarderInputData retarderInput)
{
if (retarderInput == null || !retarderInput.Type.IsDedicatedComponent()) {
return new RetarderData {Type = retarderInput?.Type ?? RetarderType.None};
return new RetarderData {Type = retarderInput?.Type ?? RetarderType.None, Ratio = 1.0};
}
var retarder = new RetarderData
......
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