Skip to content

Commit

Permalink
do not warn but inform about changed emission class #2212 #2775
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Feb 2, 2024
1 parent 4fe225b commit 5638db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/MSVehicleType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ MSVehicleType::check() {
|| StringUtils::toBool(myParameter.getParameter("has.battery.device", "false")))) {
myParameter.emissionClass = PollutantsInterface::getClassByName("Energy");
myParameter.parametersSet |= VTYPEPARS_EMISSIONCLASS_SET;
WRITE_WARNINGF(TL("The battery device is active for vType '%' but no emission class is set. The emission class Energy/unknown will be used, please consider setting an explicit emission class!"),
WRITE_MESSAGEF(TL("The battery device is active for vType '%' but no emission class is set. The emission class Energy/unknown will be used, please consider setting an explicit emission class!"),
getID());
}
}
Expand Down

0 comments on commit 5638db0

Please sign in to comment.