Hi,
I designed a very simple datafield which works very well on my F6X pro. Nevertheless, the datafield is designed for the edge devices as well. A user complaint about a crash at the very beginning. He told me that the device has no Bluetooth connection yet and then the datafield crashes. If the BT connection is established, the datafield works as well stable.
The only time I am asking for an info field is in this code area:
function compute(info) { if (info has :currentSpeed) { // The current speed in meters per second (mps). if (info.currentSpeed != null) { speedValue = info.currentSpeed; } } //speedValue = null; if (speedValue == null) { speedValue = "---"; } else { if (splitDecimalPlaces) { speedWithFraction = getSplitSpeed(speedValue); } else { speedValue = getSpeed(speedValue); } } }
Even if I decomment the speedValue = null line the datafield works in my sim. Is there any other means I have to do for edge devices?