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:
parent
ac93818c90
commit
a7c3aad8ea
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user