Skip to content

Commit 11aa916

Browse files
committed
stmhal: Fix ptr arith in CC3000 code; enable network build in travis.
1 parent 8bb71f0 commit 11aa916

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ script:
1717
- make -C bare-arm
1818
- make -C qemu-arm
1919
- make -C stmhal
20+
- make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
2021
- make -C stmhal BOARD=STM32F4DISC
2122
- make -C teensy
2223
- make -C windows CROSS_COMPILE=i586-mingw32msvc-

stmhal/modcc3k.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ STATIC mp_obj_t cc3k_socket_send(mp_obj_t self_in, mp_obj_t buf_in) {
381381
mp_int_t bytes = 0;
382382
while (bytes < bufinfo.len) {
383383
int n = MIN((bufinfo.len - bytes), MAX_TX_PACKET);
384-
n = CC3000_EXPORT(send)(self->fd, bufinfo.buf + bytes, n, 0);
384+
n = CC3000_EXPORT(send)(self->fd, (uint8_t*)bufinfo.buf + bytes, n, 0);
385385
if (n <= 0) {
386386
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(CC3000_EXPORT(errno))));
387387
}

0 commit comments

Comments
 (0)