Skip to content

Commit

Permalink
Merge pull request #13 from ni/Code-Cleanup
Browse files Browse the repository at this point in the history
Removing unnecessarylogic
  • Loading branch information
mgumble committed Jan 19, 2018
2 parents ad6f459 + 2188d38 commit dbc9f42
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nifpga/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,8 @@ def __init__(self, session, nifpga, bitfile_register, base_address_on_device):
self._datatype = bitfile_register.datatype
self._name = bitfile_register.name
self._session = session
self._write_func = nifpga["WriteArray%s" % self._datatype] if bitfile_register.is_array() \
else nifpga["Write%s" % self._datatype]
self._read_func = nifpga["ReadArray%s" % self._datatype] if bitfile_register.is_array() \
else nifpga["Read%s" % self._datatype]
self._write_func = nifpga["Write%s" % self._datatype]
self._read_func = nifpga["Read%s" % self._datatype]
self._ctype_type = self._datatype._return_ctype()
self._resource = bitfile_register.offset + base_address_on_device
if bitfile_register.access_may_timeout():
Expand Down

0 comments on commit dbc9f42

Please sign in to comment.