-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Problem:
I am having issues with printing floating point output.
This line:
sprintf(dist_str, "dist (%u): %3.2f m\n",frame_seq_nb_rx, (float)(distance));
printk("%s", dist_str);
Outputs this:
dist (0): %3.2f m\n
Possible Solution:
I added CONFIG_FPU=y in prj.conf to enable floating point support.
Action:
If you think this is a valid solution I can generate a pull request to fix it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels