yep, is it working well for you?
Here’s a minimal example that breaks:
clone repo at this commit, then run
<...>firmware-develop/modules > make clean all PLATFORM=photon
then given this:
//sprintftest.cpp
#include "application.h"
char thing[16];
void setup() {
}
void loop() {
sprintf(thing, "testing%d", 123);
}
run
<...>firmware-develop/main > make clean all PLATFORM=photon APP=sprintftest
Here’s the error I get:
<...>firmware-develop/main >make clean all PLATFORM=photon APP=sprintftest
`sprintf' referenced in section `.text.module_user_loop' of /var/folders/c1/dt61zfs90816tqlxt_9s76m40000gn/T//cci2Dim1.ltrans0.ltrans.o: defined in discarded section `.text' of rt_dynalib.o (symbol from plugin)
collect2: error: ld returned 1 exit status
make[1]: *** [../../../build/target/user-part/platform-6-m-lto/applications/sprintftest/sprintftest.elf] Error 1
make: *** [modules/photon/user-part] Error 2