bypass...

This commit is contained in:
Daniel Sommer 2022-03-24 15:18:26 +01:00
parent 9365397b1a
commit adde12a0bb

View file

@ -429,9 +429,9 @@ async function toggleBypass(pedalId) {
const pedal = await getCurrentPedalById(pedalId);
const bypass = getBypassControlFromPedal(pedal);
if (bypass.value === undefined || bypass.value === 0) {
bypass.value = 127;
} else {
bypass.value = 0;
} else {
bypass.value = 127;
}
try {
await setControl(bypass, bypass.value);