The following code returns an unexpected type error for the line where elapseSec = elapseSec / 1000;
What data type is the activityInfo.elapsedTime returning? Can someone point me in the right direction here?
using Toybox.WatchUi as Ui;
using Toybox.Application as App;
using Toybox.System as Sys;
using Toybox.Activity as Act;
class blahView extends Ui.View {
var activityInfo;
var elapseSec=0;
function onUpdate(dc) {
activityInfo = Act.getActivityInfo();
elapseSec = activityInfo.elapsedTime;
elapseSec = elapseSec / 1000;
}
}