1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/phydat: adapt to fmt_s16_dfp changes

This commit is contained in:
Hauke Petersen 2018-01-22 17:11:23 +01:00
parent ac93818c90
commit a7c3aad8ea

View File

@ -64,7 +64,7 @@ void phydat_dump(phydat_t *data, uint8_t dim)
}
else if ((data->scale > -5) && (data->scale < 0)) {
char num[8];
size_t len = fmt_s16_dfp(num, data->val[i], data->scale * -1);
size_t len = fmt_s16_dfp(num, data->val[i], data->scale);
num[len] = '\0';
printf("%s", num);
}