Skip to content

Commit 3e27672

Browse files
Fixed uart_read
Signed-off-by: David Rebbe <drebbe@intrepidcs.com>
1 parent 28f9f1d commit 3e27672

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
MAJOR_VERSION = 910
1212
MINOR_VERSION = 10
13-
POST_VERSION = 3
13+
POST_VERSION = 4
1414

1515
if POST_VERSION:
1616
VERSION_STRING = '%d.%d-%d' % (MAJOR_VERSION, MINOR_VERSION, POST_VERSION)

src/methods.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3820,11 +3820,10 @@ PyObject* meth_uart_read(PyObject* self, PyObject* args)
38203820
}
38213821
Py_END_ALLOW_THREADS
38223822
PyObject* ba_result = PyByteArray_FromStringAndSize((const char*)buffer, bytesActuallyRead);
3823-
PyObject* value = Py_BuildValue("Y", ba_result);
3823+
//PyObject* value = Py_BuildValue("O", ba_result);
38243824
free(buffer);
38253825
buffer = NULL;
3826-
Py_DECREF(ba_result);
3827-
return value;
3826+
return ba_result;
38283827
}
38293828
catch (ice::Exception& ex)
38303829
{

0 commit comments

Comments
 (0)