Skip to content
Snippets Groups Projects
Commit a7c3aad8 authored by Hauke Petersen's avatar Hauke Petersen
Browse files

sys/phydat: adapt to fmt_s16_dfp changes

parent ac93818c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment