Skip to content

Commit

Permalink
set autosar export t 4.1.0 by default (3.2.x is buggy and outdated an…
Browse files Browse the repository at this point in the history
…yway)
  • Loading branch information
ebroecker committed Feb 9, 2025
1 parent eeba45c commit 5ab2a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/canmatrix/cli/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_formats():

# arxml switches
@click.option('--arxmlIgnoreClusterInfo/--no-arxmlIgnoreClusterInfo', 'arxmlIgnoreClusterInfo', default=False, help="Ignore any can cluster info from arxml; Import all frames in one matrix\ndefault False")
@click.option('--arxmlExportVersion', 'arVersion', default="3.2.3", help="Set output AUTOSAR version\ncurrently only 3.2.3 and 4.1.0 are supported\ndefault 3.2.3")
@click.option('--arxmlExportVersion', 'arVersion', default="4.1.0", help="Set output AUTOSAR version\ncurrently only 3.2.3 and 4.1.0 are supported\ndefault 4.1.0")
@click.option('--arxmlFlexray/--no-arxmlFlexray', 'decode_flexray', default = False, help="EXPERIMENTAL: import basic flexray data from ARXML")
@click.option('--arxmlEthernet/--no-arxmlEthernet', 'decode_ethernet', default = False, help="EXPERIMENTAL: import basic ethernet data from ARXML")

Expand Down
2 changes: 1 addition & 1 deletion src/canmatrix/formats/arxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def get_base_type_of_signal(signal):

def dump(dbs, f, **options):
# type: (typing.Mapping[str, canmatrix.CanMatrix], typing.IO, **str) -> None
ar_version = options.get("arVersion", "3.2.3")
ar_version = options.get("arVersion", "4.1.0")

for name in dbs:
db = dbs[name]
Expand Down

0 comments on commit 5ab2a2d

Please sign in to comment.