Probably due to an upgrade some previously working code that used snprintk is now not working. It copies the format string into the destination string instead of ... formatting.
snprintk(heading_text, 4, "%03f", heading);
Where heading is a single precision float. prj.conf is:
The call returns 4 so it's obviously quite pleased with itself. Has anyone seen this before?
Edit: This code has moved from an nRF52840 to an nRF52811. And onto a custom board. It works fine on the nRF52840 board.
So I've probably done something wrong in my board definitions. Any idea what might cause this?
Ah, OK, I think I got it. snprintk works fine for %d but not floats - this follows what is in the docs at (https://docs.zephyrproject.org/apidoc/latest/printk_8h_a768a7dff8592b69f327a08f96b00fa54.html) but begs the question of why it worked in the first place. That'll do for now.