Skip to content

Commit f2efe72

Browse files
committed
examples: require float_math where needed
1 parent 73f4160 commit f2efe72

File tree

2 files changed

+5
-0
lines changed
  • examples
    • lang_support/official/riot_and_cpp
    • networking/misc/spectrum-scanner

2 files changed

+5
-0
lines changed

examples/lang_support/official/riot_and_cpp/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ DEVELHELP ?= 1
2727
# Change this to 0 show compiler invocation lines by default:
2828
QUIET ?= 1
2929

30+
USEMODULE += printf_float
31+
3032
# Features required
3133
FEATURES_REQUIRED += cpp # basic C++ support
3234
FEATURES_REQUIRED += libstdcpp # libstdc++ support (for #include <cstdio>)

examples/networking/misc/spectrum-scanner/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ BOARD ?= samr21-xpro
77
# This has to be the absolute path to the RIOT base directory:
88
RIOTBASE ?= $(CURDIR)/../../../..
99

10+
# Needed for print_float()
11+
FEATURES_REQUIRED += float_math
12+
1013
# Define modules that are used
1114
USEMODULE += gnrc
1215
USEMODULE += netdev_default

0 commit comments

Comments
 (0)