Skip to content
Snippets Groups Projects
Unverified Commit 0b65a339 authored by Koen Zandberg's avatar Koen Zandberg
Browse files

tinycbor: Version bump to 0.5.2

This release fixed some bugs related to disabling float support in the
parser.
The float support is now optional and can be enabled by including the
tinycbor_float module. This allows for compiling on AVR as that platform
doesn't support the float specific defines used by tinycbor.
parent 0c1a207b
No related branches found
No related tags found
No related merge requests found
PKG_NAME=tinycbor
PKG_URL=https://github.com/intel/tinycbor
PKG_VERSION=v0.5.1
# Tinycbor v0.5.2
PKG_VERSION=d94ca09aa91f5b3c581527aa8bca179a82b79874
PKG_LICENSE=MIT
.PHONY: all
......
INCLUDES += -I$(PKGDIRBASE)/tinycbor/src
ifeq (,$(filter tinycbor_float,$(USEMODULE)))
CFLAGS += -DCBOR_NO_FLOATING_POINT
endif
# Declare pseudomodules here to be selfcontained
PSEUDOMODULES += tinycbor_%
......@@ -9,6 +9,8 @@ USEMODULE += embunit
USEMODULE += fmt
USEPKG += tinycbor
USEMODULE += tinycbor_float
TEST_ON_CI_WHITELIST += all
include $(RIOTBASE)/Makefile.include
......
......@@ -52,6 +52,7 @@ const char *tests[] = {
"f7", /* undefined */
"f8ff", /* simple(255) */
#ifdef MODULE_TINYCBOR_FLOAT
"f93c00", /* 1.0 */
"f9bc00", /* -1.0 */
"f903ff", /* 6.097555160522461e-05 */
......@@ -61,6 +62,7 @@ const char *tests[] = {
"fa47800000", /* 65536.0 */
"fb3ff199999999999a", /* 1.1 */
"f97e00", /* NaN */
#endif
"8300810000", /* [ 0, [ 0], 0] */
"a26161016162820203", /* { "a": 1, "b": [ 2, 3]} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment