I have a weird error that I can't seem to debug. I have made this app which collects data, including accelerometer data, for a separate project. It runs correctly on all devices on the simulator so I uploaded it to the store. It then ran fine on multiple different watches but on the forerunner 245 & 245 music (potenitally all devices api level v3.3) it crashes ~0.5s after you press start.
Reading the ciq_log file its says:
Error: Invalid Value
Details: Cannot convert Object to Long
Time: 2025-02-22T17:55:48Z
Part-Number: 006-B3077-00
Firmware-Version: '13.70'
Language-Code: eng
ConnectIQ-Version: 5.0.2
Filename: F2MD1445
Appname: Orienteering
Stack:
- pc: 0x10000eb2
File: '..\OnalysisApp.mc'
Line: 223
Function: onSensorEvent_HD
This is the function in question:
I don't understand which part of the line the error is coming from as I have verified that $._data.sensorAccel is a integer array of the correct size and I am not attempting to convert it to a long anywhere. Thanks in advance for the help!