added todo
This commit is contained in:
parent
adde12a0bb
commit
2ee5bedf79
1 changed files with 4 additions and 3 deletions
|
@ -374,7 +374,7 @@ function hasControlMidiBindings(control) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isBypassed(control) {
|
function isBypassed(control) {
|
||||||
return control.name === constants.CONTROL_BYPASS && control
|
return control.name === constants.CONTROL_BYPASS && control;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isPedalBypassed(pedal) {
|
function isPedalBypassed(pedal) {
|
||||||
|
@ -426,8 +426,9 @@ async function toggleBypass(pedalId) {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const pedal = await getCurrentPedalById(pedalId);
|
// TODO: Cache aktualisieren mit An/Aus-Wert
|
||||||
const bypass = getBypassControlFromPedal(pedal);
|
let pedal = await getCurrentPedalById(pedalId);
|
||||||
|
let bypass = getBypassControlFromPedal(pedal);
|
||||||
if (bypass.value === undefined || bypass.value === 0) {
|
if (bypass.value === undefined || bypass.value === 0) {
|
||||||
bypass.value = 0;
|
bypass.value = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue