I'm developing a relatively simple app, sideloading for my own use only.
I'm getting a crash caused by a type mismatch when I try to do a text format to display a number on the watch face.
I'm getting temperature information from Sensor.getInfo(), which is a floating point value.
If I just assign the local tempC variable a value like 10.0, then it works, but when I use the following code to do the assignment with the sensor info it works in the simulation, but crashes on the watch.
info = Sensor.getInfo();
tempC = info.temperature;
string = Lang.format("$1$", [tempC.format("%5.1f")]);
the debug file error says "unexpected type error" in the string = statement above.
Its driving me crazy because I had a similar app running normally before, but accidentally overwrote it on the watch and can't figure out where I stored the source files in the eclipse directory to see how I did it the first time.
its a Fenix 6 watch, thanks for any help.