Skip to content

Commit

Permalink
Actually make it change the device
Browse files Browse the repository at this point in the history
  • Loading branch information
Kellett authored and jat255 committed Jan 6, 2025
1 parent 705712f commit 42691b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def edit_fit(
dt = datetime.fromtimestamp(message.time_created / 1000.0) # type: ignore
_logger.info(f'Activity timestamp is "{dt.isoformat()}"')
print_message(f"Record: {i}", message)
if message.manufacturer == Manufacturer.DEVELOPMENT.value:
if message.manufacturer == Manufacturer.DEVELOPMENT.value or message.manufacturer == Manufacturer.ZWIFT.value:
_logger.debug(" Modifying values")
message.product = GarminProduct.EDGE_830.value
message.manufacturer = Manufacturer.GARMIN.value
Expand All @@ -237,7 +237,7 @@ def edit_fit(
message.manufacturer == Manufacturer.DEVELOPMENT.value
or message.manufacturer == 0
or message.manufacturer == Manufacturer.WAHOO_FITNESS.value
):
) or message.manufacturer == Manufacturer.ZWIFT.value:
_logger.debug(" Modifying values")
message.garmin_product = GarminProduct.EDGE_830.value
message.product = GarminProduct.EDGE_830.value # type: ignore
Expand Down

0 comments on commit 42691b8

Please sign in to comment.