Skip to content

Commit

Permalink
Fix error in the Python dict methods for MCC 152
Browse files Browse the repository at this point in the history
  • Loading branch information
nwright-mcc committed Sep 29, 2023
1 parent e6d96c8 commit 225a2ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<tr><td>Info</td><td>Contains C and Python Libraries for interacting with
Measurement Computing DAQ HAT boards.</td></tr>
<tr><td>Author</td><td>Measurement Computing</td></tr>
<tr><td>Library Version<td>1.4.0.6</td></tr>
<tr><td>Library Version<td>1.4.0.7</td></tr>
</table>

## About
Expand Down
4 changes: 2 additions & 2 deletions daqhats/mcc152.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def dio_output_write_dict(self, value_dict):
if not self._initialized:
raise HatError(self._address, "Not initialized.")

orig_val = c_ubyte
orig_val = c_ubyte()
result = self._lib.mcc152_dio_output_read_port(
self._address, byref(orig_val))
if result != self._RESULT_SUCCESS:
Expand Down Expand Up @@ -1094,7 +1094,7 @@ def dio_config_write_dict(self, item, value_dict):
if not self._initialized:
raise HatError(self._address, "Not initialized.")

orig_val = c_ubyte
orig_val = c_ubyte()
result = self._lib.mcc152_dio_config_read_port(
self._address, item, byref(orig_val))
if result != self._RESULT_SUCCESS:
Expand Down
2 changes: 1 addition & 1 deletion lib/makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MAJOR = 1
MINOR = 4
SUB = 0.6
SUB = 0.7
NAME = daqhats
VERSION = $(MAJOR).$(MINOR).$(SUB)
INSTALL_DIR = /usr/local/lib
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='daqhats',
version='1.4.0.6',
version='1.4.0.7',
description='MCC DAQ HAT Python Library',
author='Measurement Computing Corp.',
author_email='[email protected]',
Expand Down
4 changes: 4 additions & 0 deletions version_history.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.4.0.7:
- Fixed error in the Python dio_output_write_dict() and dio_config_write_dict()
methods for the MCC 152.

1.4.0.6:
- Fixed daqhats_read_eeproms issue under bullseye.
- Fixed x-axis display problem in data logger examples in the 64-bit OS
Expand Down

0 comments on commit 225a2ed

Please sign in to comment.