added todo

This commit is contained in:
Daniel Sommer 2022-03-24 15:28:34 +01:00
parent adde12a0bb
commit 2ee5bedf79

View file

@ -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 {