|
|
|
@ -364,17 +364,16 @@ SetupPage {
@@ -364,17 +364,16 @@ SetupPage {
|
|
|
|
|
property int _compassIndex: index |
|
|
|
|
|
|
|
|
|
function selectPriorityfromParams() { |
|
|
|
|
if (visible) { |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Component.onCompleted: selectPriorityfromParams() |
|
|
|
|
|
|
|
|
|