Hello,
Since v 4.30 on Vivoactive HR, users report problems with a watch face displaying the pressure value
In the following code, pressuresample.data is null on a real Vivoactive HR
The code works in the simulator and was working with firmware 4.00 on the device.
var pressureiterator = Toybox.SensorHistory.getPressureHistory( {:order=>Toybox.SensorHistory.ORDER_NEWEST_FIRST});
var pressure="--";
var pressuresample=0;
if ( pressureiterator != null ) {
pressuresample=pressureiterator.next();
if(pressuresample.data) {
pressure=(pressuresample.data/100).format("%02.1f");
}
The same code works ok when using the temperature or elevation iterator.
Thanks for your help.