Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
11aa9161
Commit
11aa9161
authored
Oct 30, 2014
by
Damien George
Browse files
stmhal: Fix ptr arith in CC3000 code; enable network build in travis.
parent
8bb71f0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
11aa9161
...
...
@@ -17,6 +17,7 @@ script:
-
make -C bare-arm
-
make -C qemu-arm
-
make -C stmhal
-
make -C stmhal -B MICROPY_PY_WIZNET5K=1 MICROPY_PY_CC3K=1
-
make -C stmhal BOARD=STM32F4DISC
-
make -C teensy
-
make -C windows CROSS_COMPILE=i586-mingw32msvc-
...
...
stmhal/modcc3k.c
View file @
11aa9161
...
...
@@ -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
))));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment