Hi,
I am developing a datafielkd for EDGE devices and I want to show Di2 status.
I am using this code, the problmes is that I cann't simulate Di2 on simulator and I am getting null values. How can I do it, if I cannot have a Di2 device?
var frontDerailleurIndex = -1;
if(info has :frontDerailleurIndex) {
frontDerailleurIndex = info.frontDerailleurIndex;
}
Sys.println("Front Derailleur: " + frontDerailleurIndex);
var rearDerailleurIndex = -1;
if(info has :rearDerailleurIndex) {
rearDerailleurIndex = info.rearDerailleurIndex;
}
Sys.println("Rear Derailleur: " + rearDerailleurIndex);