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) {
|
||||
return control.name === constants.CONTROL_BYPASS && control
|
||||
return control.name === constants.CONTROL_BYPASS && control;
|
||||
}
|
||||
|
||||
function isPedalBypassed(pedal) {
|
||||
|
@ -426,8 +426,9 @@ async function toggleBypass(pedalId) {
|
|||
}
|
||||
return;
|
||||
}
|
||||
const pedal = await getCurrentPedalById(pedalId);
|
||||
const bypass = getBypassControlFromPedal(pedal);
|
||||
// TODO: Cache aktualisieren mit An/Aus-Wert
|
||||
let pedal = await getCurrentPedalById(pedalId);
|
||||
let bypass = getBypassControlFromPedal(pedal);
|
||||
if (bypass.value === undefined || bypass.value === 0) {
|
||||
bypass.value = 0;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue