Hi,
I am working on an app that reacts to tap events, averaging the time between the taps. I am having trouble with storing the difference between two Moment values.
The first tap registers correctly, and
setupLastTime = Time.now().value();
is executed correctly with the proper value.
on the second tap,
setupThisTime = Time.now().value();
executes, but the app crashes on
beatTime += (setupThisTime - setupLastTime).toDouble();
with the error
UnexpectedTypeException: Expected Number/Float/String/Long/Double, given Object/Double
found in the logs.
I guess I'm not quite sure how types work in Monkey C.
Any help would be much appreciated, as this is my first Connect IQ app! ^^