|
|
|
@ -364,14 +364,13 @@ SetupPage {
@@ -364,14 +364,13 @@ SetupPage {
|
|
|
|
|
property int _compassIndex: index |
|
|
|
|
|
|
|
|
|
function selectPriorityfromParams() { |
|
|
|
|
if (visible) { |
|
|
|
|
currentIndex = 3 |
|
|
|
|
var compassId = sensorParams.rgCompassId[_compassIndex].rawValue |
|
|
|
|
for (var prioIndex=0; prioIndex<3; prioIndex++) { |
|
|
|
|
if (compassId == sensorParams.rgCompassPrio[prioIndex].rawValue) { |
|
|
|
|
currentIndex = prioIndex |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
currentIndex = 3 |
|
|
|
|
var compassId = sensorParams.rgCompassId[_compassIndex].rawValue |
|
|
|
|
for (var prioIndex=0; prioIndex<3; prioIndex++) { |
|
|
|
|
console.log(`comparing ${compassId} with ${sensorParams.rgCompassPrio[prioIndex].rawValue} (index ${prioIndex})`) |
|
|
|
|
if (compassId == sensorParams.rgCompassPrio[prioIndex].rawValue) { |
|
|
|
|
currentIndex = prioIndex |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|