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:
benpicco 2019-09-01 15:43:04 +02:00 committed by GitHub
commit a10c3f09a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,5 @@ include ../Makefile.tests_common
USEMODULE += io1_xplained
USEMODULE += xtimer
USEMODULE += printf_float
include $(RIOTBASE)/Makefile.include

View File

@ -67,9 +67,10 @@ int main(void)
while (1) {
/* Get temperature in degrees celsius */
at30tse75x_get_temperature(&dev.temp, &temperature);
printf("Temperature [°C]: %.2f\n"
printf("Temperature [°C]: %i.%03u\n"
"+-------------------------------------+\n",
temperature);
(int)temperature,
(unsigned)((temperature - (int)temperature) * 1000));
xtimer_sleep(DELAY_1S);
/* Card detect pin is inverted */