Re: how to print floating points in mynewt

2018-09-05 Thread Kevin Townsend
This page might be worth updating since I came to the same mistaken conclusion based on the last line here: http://mynewt.apache.org/v1_2_0/os/modules/baselibc/ ... and implemented my own %f solution before discovering that there IS in fact basic float support with FLOAT_USER. :) The current

Re: how to print floating points in mynewt

2018-09-05 Thread Rohit Gujarathi
Thanks Christopher! On Wed, Sep 5, 2018, 11:03 PM Christopher Collins wrote: > Hi Rohit, > > baselibc does support floating point formatting, but it is not enabled > by default. To enable it, set the following syscfg setting to 1 in your > target: > > FLOAT_USER > > baselibc's float

Re: how to print floating points in mynewt

2018-09-05 Thread Christopher Collins
Hi Rohit, baselibc does support floating point formatting, but it is not enabled by default. To enable it, set the following syscfg setting to 1 in your target: FLOAT_USER baselibc's float printf support is a bit limited. In particular, it ignores precision specifiers and always prints

how to print floating points in mynewt

2018-09-05 Thread Rohit Gujarathi
Hi everyone, I am trying to print floating point in mynewt using *console_printf("%f",floating_var)* but i am unable to do so. I read that the baselibc does not support floating point, so I tried removing the libc/baselibc from pkg.deps: in pkg.yml so that the compiler uses newlib but then i hit