mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 23:12:45 +01:00
Merge pull request #12872 from aabadie/pr/pkg/wakaama_cleanup
pkg/wakaama: small cleanup
This commit is contained in:
commit
f701957093
@ -1,28 +1,3 @@
|
|||||||
BOARD_BLACKLIST := \
|
|
||||||
arduino-duemilanove \
|
|
||||||
arduino-leonardo \
|
|
||||||
arduino-mega2560 \
|
|
||||||
arduino-nano \
|
|
||||||
arduino-uno \
|
|
||||||
atmega1284p \
|
|
||||||
atmega256rfr2-xpro \
|
|
||||||
atmega328p \
|
|
||||||
avr-rss2 \
|
|
||||||
chronos \
|
|
||||||
derfmega128 \
|
|
||||||
derfmega256 \
|
|
||||||
mega-xplained \
|
|
||||||
microduino-corerf \
|
|
||||||
msb-430 \
|
|
||||||
msb-430h \
|
|
||||||
pic32-clicker \
|
|
||||||
pic32-wifire \
|
|
||||||
telosb \
|
|
||||||
waspmote-pro \
|
|
||||||
wsn430-v1_3b \
|
|
||||||
wsn430-v1_4 \
|
|
||||||
z1
|
|
||||||
|
|
||||||
BOARD_INSUFFICIENT_MEMORY := \
|
BOARD_INSUFFICIENT_MEMORY := \
|
||||||
airfy-beacon \
|
airfy-beacon \
|
||||||
b-l072z-lrwan1 \
|
b-l072z-lrwan1 \
|
||||||
@ -57,4 +32,5 @@ BOARD_INSUFFICIENT_MEMORY := \
|
|||||||
stm32f030f4-demo \
|
stm32f030f4-demo \
|
||||||
stm32f0discovery \
|
stm32f0discovery \
|
||||||
stm32l0538-disco \
|
stm32l0538-disco \
|
||||||
yunjia-nrf51822
|
yunjia-nrf51822 \
|
||||||
|
#
|
||||||
|
@ -7,3 +7,6 @@ ifneq (,$(filter tlsf-malloc,$(USEMODULE)))
|
|||||||
$(warning tlsf-malloc can only be used on native or on platforms using newlib)
|
$(warning tlsf-malloc can only be used on native or on platforms using newlib)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# tlsf is not compatible with 8bit and 16bit architectures
|
||||||
|
FEATURES_REQUIRED += arch_32bit
|
||||||
|
@ -176,12 +176,12 @@ static void *_lwm2m_client_run(void *arg)
|
|||||||
lwm2m_client_connection_t *conn = lwm2m_client_connection_find(
|
lwm2m_client_connection_t *conn = lwm2m_client_connection_find(
|
||||||
_client_data->conn_list, &remote);
|
_client_data->conn_list, &remote);
|
||||||
if (conn) {
|
if (conn) {
|
||||||
DEBUG("lwm2m_connection_handle_packet(%d)\n", rcv_len);
|
DEBUG("lwm2m_connection_handle_packet(%i)\n", (int)rcv_len);
|
||||||
int result = lwm2m_connection_handle_packet(conn, rcv_buf,
|
int result = lwm2m_connection_handle_packet(conn, rcv_buf,
|
||||||
rcv_len,
|
rcv_len,
|
||||||
_client_data);
|
_client_data);
|
||||||
if (0 != result) {
|
if (0 != result) {
|
||||||
DEBUG("error handling message %d\n", result);
|
DEBUG("error handling message %i\n", result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -190,10 +190,10 @@ static void *_lwm2m_client_run(void *arg)
|
|||||||
}
|
}
|
||||||
else if ((rcv_len < 0) &&
|
else if ((rcv_len < 0) &&
|
||||||
((rcv_len != -EAGAIN) && (rcv_len != -ETIMEDOUT))) {
|
((rcv_len != -EAGAIN) && (rcv_len != -ETIMEDOUT))) {
|
||||||
DEBUG("Unexpected sock_udp_recv error code %i\n", rcv_len);
|
DEBUG("Unexpected sock_udp_recv error code %i\n", (int)rcv_len);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DEBUG("UDP error code: %d\n", rcv_len);
|
DEBUG("UDP error code: %i\n", (int)rcv_len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -261,7 +261,7 @@ static int _connection_send(lwm2m_client_connection_t *conn, uint8_t *buffer,
|
|||||||
ssize_t sent_bytes = sock_udp_send(&(client_data->sock), buffer,
|
ssize_t sent_bytes = sock_udp_send(&(client_data->sock), buffer,
|
||||||
buffer_size, &(conn->remote));
|
buffer_size, &(conn->remote));
|
||||||
if (sent_bytes <= 0) {
|
if (sent_bytes <= 0) {
|
||||||
DEBUG("[_connection_send] Could not send UDP packet: %d\n", sent_bytes);
|
DEBUG("[_connection_send] Could not send UDP packet: %i\n", (int)sent_bytes);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
conn->last_send = lwm2m_gettime();
|
conn->last_send = lwm2m_gettime();
|
||||||
|
Loading…
Reference in New Issue
Block a user