mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-20 20:13:50 +01:00
Merge pull request #12136 from aabadie/pr/tests/driver_io1_xplained_printf_float
tests/driver_io1_xplained: remove printf_float dependency
This commit is contained in:
commit
a10c3f09a4
@ -2,6 +2,5 @@ include ../Makefile.tests_common
|
|||||||
|
|
||||||
USEMODULE += io1_xplained
|
USEMODULE += io1_xplained
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
USEMODULE += printf_float
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@ -67,9 +67,10 @@ int main(void)
|
|||||||
while (1) {
|
while (1) {
|
||||||
/* Get temperature in degrees celsius */
|
/* Get temperature in degrees celsius */
|
||||||
at30tse75x_get_temperature(&dev.temp, &temperature);
|
at30tse75x_get_temperature(&dev.temp, &temperature);
|
||||||
printf("Temperature [°C]: %.2f\n"
|
printf("Temperature [°C]: %i.%03u\n"
|
||||||
"+-------------------------------------+\n",
|
"+-------------------------------------+\n",
|
||||||
temperature);
|
(int)temperature,
|
||||||
|
(unsigned)((temperature - (int)temperature) * 1000));
|
||||||
xtimer_sleep(DELAY_1S);
|
xtimer_sleep(DELAY_1S);
|
||||||
|
|
||||||
/* Card detect pin is inverted */
|
/* Card detect pin is inverted */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user