I'm updating a project I have to work in the new 4.2.3 SDK but I I'm getting this error :
Invalid '$.Toybox.Lang.Method() as Any' passed as parameter 1 of type '$.Toybox.Lang.Method() as Void'.
Here is the function:
//Update the watch every 10 sec for the clock
function timerCallback() {
WatchUi.requestUpdate();
}
function onLayout(dc) {
var myTimer = new Timer.Timer();
myTimer.start(method(:timerCallback), 1000, true);
}
Did I do something wrong?