Bug fix in _add_autosar_data_types
Checking class == CVC_DISP is not enough. Doesn't catch e.g. ASIL_A/CVC_DISP_ASIL_A. Change-Id: I8dcebd90d258c3cea103e6691525def772eb923e
This commit is contained in:
parent
03ac4c732a
commit
ec77977757
@ -514,7 +514,7 @@ class CompositionYaml(ProblemLogger):
|
||||
if not isinstance(info["width"], list):
|
||||
class_info[signal_name] = {
|
||||
"type": info["type"],
|
||||
"access": "READ-ONLY" if info["class"] == "CVC_DISP" else "READ-WRITE",
|
||||
"access": "READ-ONLY" if "CVC_DISP" in info["class"] else "READ-WRITE",
|
||||
"init": self.calibration_init_values.get(signal_name, max(min(0, upper), lower)),
|
||||
}
|
||||
return class_info, data_types
|
||||
@ -615,7 +615,7 @@ class CompositionYaml(ProblemLogger):
|
||||
new_data_type[new_data_type_name] = new_data_type_data
|
||||
class_info[signal_name] = {
|
||||
"type": new_data_type_name,
|
||||
"access": "READ-ONLY" if info["class"] == "CVC_DISP" else "READ-WRITE",
|
||||
"access": "READ-ONLY" if "CVC_DISP" in info["class"] else "READ-WRITE",
|
||||
"init": init,
|
||||
}
|
||||
data_types = {**data_types, **new_data_type}
|
||||
|
Loading…
x
Reference in New Issue
Block a user