[Armadeus-commitlog] armadeus branch, master, updated. release-3.3-378-g6536e5b
Brought to you by:
sszy
|
From: Fabien M <fa...@us...> - 2011-02-25 11:06:12
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 6536e5bda91040600c0f51d1193af5f2d65fa908 (commit)
from bdd9cbcfc8232e37ef93c25928c189d8f97e3c02 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6536e5bda91040600c0f51d1193af5f2d65fa908
Author: Fabien Marteau <fab...@ar...>
Date: Fri Feb 25 12:05:44 2011 +0100
[as_devices] Don't mix python and C in i2c python wrapper ;)
-----------------------------------------------------------------------
Summary of changes:
target/packages/as_devices/python/src/AsI2c_wrap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/target/packages/as_devices/python/src/AsI2c_wrap.c b/target/packages/as_devices/python/src/AsI2c_wrap.c
index 9359db1..c080d55 100644
--- a/target/packages/as_devices/python/src/AsI2c_wrap.c
+++ b/target/packages/as_devices/python/src/AsI2c_wrap.c
@@ -172,7 +172,7 @@ static PyObject * i2c_read(PyObject *self, PyObject *args)
if (aSize > MAX_DATA_SIZE) {
PyErr_SetString(PyExc_IOError,
- "Size can't be upper than "+str(MAX_DATA_SIZE));
+ "Size too high");
return NULL;
}
@@ -231,7 +231,7 @@ static PyObject * i2c_read_reg(PyObject *self, PyObject *args)
}
if (aSize > MAX_DATA_SIZE) {
PyErr_SetString(PyExc_IOError,
- "Size can't be upper than "+str(MAX_DATA_SIZE));
+ "Size too high");
return NULL;
}
@@ -318,7 +318,7 @@ static PyObject * i2c_read_msg(PyObject *self, PyObject *args)
}
if (aReadSize > MAX_DATA_SIZE) {
PyErr_SetString(PyExc_IOError,
- "Read size can't be upper than "+str(MAX_DATA_SIZE));
+ "Read size too high");
return NULL;
}
hooks/post-receive
--
armadeus
|