aboutsummaryrefslogtreecommitdiff
path: root/stmhal/modcc3k.c
diff options
context:
space:
mode:
authorDamien George2014-10-30 15:28:15 +0000
committerDamien George2014-10-30 15:28:15 +0000
commit11aa91615ec21229742fb4551e4610f83d61eec7 (patch)
tree666ddc79569b31225fb0307a9c110c86781e34df /stmhal/modcc3k.c
parent8bb71f0b06cb558b76471bd5459c1ca49224d2cc (diff)
stmhal: Fix ptr arith in CC3000 code; enable network build in travis.
Diffstat (limited to 'stmhal/modcc3k.c')
-rw-r--r--stmhal/modcc3k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/modcc3k.c b/stmhal/modcc3k.c
index ab7ff1928..7c35e76f6 100644
--- a/stmhal/modcc3k.c
+++ b/stmhal/modcc3k.c
@@ -381,7 +381,7 @@ STATIC mp_obj_t cc3k_socket_send(mp_obj_t self_in, mp_obj_t buf_in) {
mp_int_t bytes = 0;
while (bytes < bufinfo.len) {
int n = MIN((bufinfo.len - bytes), MAX_TX_PACKET);
- n = CC3000_EXPORT(send)(self->fd, bufinfo.buf + bytes, n, 0);
+ n = CC3000_EXPORT(send)(self->fd, (uint8_t*)bufinfo.buf + bytes, n, 0);
if (n <= 0) {
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(CC3000_EXPORT(errno))));
}