diff options
| author | Damien George | 2014-10-30 15:28:15 +0000 |
|---|---|---|
| committer | Damien George | 2014-10-30 15:28:15 +0000 |
| commit | 11aa91615ec21229742fb4551e4610f83d61eec7 (patch) | |
| tree | 666ddc79569b31225fb0307a9c110c86781e34df /stmhal/modcc3k.c | |
| parent | 8bb71f0b06cb558b76471bd5459c1ca49224d2cc (diff) | |
stmhal: Fix ptr arith in CC3000 code; enable network build in travis.
Diffstat (limited to 'stmhal/modcc3k.c')
| -rw-r--r-- | stmhal/modcc3k.c | 2 |
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)))); } |
