[riot-notifications] [RIOT-OS/RIOT] pkg: add support for Elk Tiny Javascript engine (#16887)

Sergey Lyubka notifications at github.com
Mon Sep 27 15:09:41 CEST 2021


> but `tests/thread_float` is also stuck in a reboot loop

Elk uses SDK's `snprintf(... "%g", value)` for printing floats. Thus if underlying SDK does not print floats, Elk also won't. A workarounds exist , the simplest one is to use a hand-written function, like mjson library did: https://github.com/cesanta/mjson/blob/c450ccf2dcae1f3ee9721716535df060cfaab6c9/src/mjson.c#L561-L618 . Adds ~50 LoC, but does the job.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16887#issuecomment-927858647
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210927/991f271c/attachment.htm>


More information about the notifications mailing list