ID+bo in resistenze

This commit is contained in:
=
2021-02-17 12:36:38 +01:00
parent b8b64189fc
commit ac212a3a6e
2 changed files with 8 additions and 2 deletions
@@ -99,7 +99,13 @@ export default class Resistance extends Vue {
return this.currentStandardTempColor;
}
getBoard(id) {
return Math.floor((id - 1) / 16);
}
getOutput(id) {
return Math.floor((id - 1) % 16);
}
get currentSelectedColor() {
@@ -24,8 +24,8 @@
v-else
:style="{backgroundColor:`rgb(${currentColorTemp})`}"
>
<span>ID:</span>
<small>Bo:</small>
<span>ID: {{getOutput(channel.idChannel)}}</span>
<small>Bo: {{getBoard(channel.idChannel)}}</small>
<small>Ch: {{channel.idChannel}}</small>
</div>
</template>