mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-02 18:57:09 +03:00
some fixes for platform minimal-net
This commit is contained in:
1 parent
263e149ffd
commit
7503262aa9
3 files changed
+7
-3
No files matched your search
@@ -12,7 +12,7 @@ UIP_CONF_IPV6=1
|
||||
#CFLAGS += -DUIP_CONF_IPV6_RPL=1
|
||||
|
||||
ifeq ($(TARGET), minimal-net)
|
||||
CFLAGS += -DHAVE_ASSERT_H
|
||||
CFLAGS += -DHAVE_ASSERT_H -DWITH_UIP6=1
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET), mbxxx)
|
||||
|
||||
@@ -67,8 +67,8 @@ static inline size_t
|
||||
print_timestamp(char *s, size_t len, coap_tick_t t) {
|
||||
#ifdef HAVE_SNPRINTF
|
||||
return snprintf(s, len, "%u.%03u",
|
||||
clock_offset + (t / COAP_TICKS_PER_SECOND),
|
||||
t % COAP_TICKS_PER_SECOND);
|
||||
(unsigned int)(clock_offset + (t / COAP_TICKS_PER_SECOND)),
|
||||
(unsigned int)(t % COAP_TICKS_PER_SECOND));
|
||||
#else /* HAVE_SNPRINTF */
|
||||
/* @todo do manual conversion of timestamp */
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user