Skip to content

Commit

Permalink
Fix fwverpy
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-dewar committed Nov 24, 2024
1 parent 0cf057a commit e9658e5
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions software/chipwhisperer/capture/scopes/OpenADC.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,17 @@ def __init__(self):
# self.disable_newattr()

def _getFWPy(self):
from ...hardware.firmware.open_fw import fwver
cw_type = self._getCWType()
if cw_type == "cwlite":
from ...hardware.firmware.cwlite import fwver
elif cw_type == "cw1200":
from ...hardware.firmware.cw1200 import fwver # type: ignore
elif cw_type in ["cwhusky", "cwhuskyplus"]:
from ...hardware.firmware.cwhusky import fwver # type: ignore
else:
raise ValueError('Unknown cw_type: %s' % cw_type)
fwver = fwver(cw_type)
# if cw_type == "cwlite":
# from ...hardware.firmware.cwlite import fwver
# elif cw_type == "cw1200":
# from ...hardware.firmware.cw1200 import fwver # type: ignore
# elif cw_type in ["cwhusky", "cwhuskyplus"]:
# from ...hardware.firmware.cwhusky import fwver # type: ignore
# else:
# raise ValueError('Unknown cw_type: %s' % cw_type)
return fwver

def reload_fpga(self, bitstream=None, reconnect=True, prog_speed=1E6):
Expand Down

0 comments on commit e9658e5

Please sign in to comment.