Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Versa Hardware not Ticking on Second

I have developed a problem that only affects Versa Hardware that has me stumped.

The ontick is being called on the minute even though the granularity is set to seconds.

clock.granularity = "seconds";
clock.ontick = () => updateClock();

It works fine (updates each second) in the simulator on both Ionic and Versa and on my Ionic Hardware, just not the Versa Hardware (updates each minute).

 

Here is a link to the full source: https://github.com/cmspooner/ForecastTime

 

Best Answer
0 Votes
1 REPLY 1

I'm not having that problem with the Versa, but I'm handling the onclick slightly different my code uses an anonymous function.

clock.ontick = (evt) => {
	heartRateSensor.start();
	let currentDate = evt.date;
	let hours = currentDate.getHours();
...

The source for the watchface is in github https://github.com/grumpy-coders/rpg-time  (code is in the app/index.js)

Best Answer
0 Votes