Saving patch number to EEPROM.
This commit is contained in:
parent
a59729b063
commit
7598f62986
1 changed files with 1 additions and 0 deletions
|
@ -462,6 +462,7 @@ void loop() {
|
||||||
activePatch = patch;
|
activePatch = patch;
|
||||||
usbMIDI.sendProgramChange(activePatch-1,activeMIDIchannel);
|
usbMIDI.sendProgramChange(activePatch-1,activeMIDIchannel);
|
||||||
dinMIDIsendProgramChange(activePatch-1,activeMIDIchannel-1);
|
dinMIDIsendProgramChange(activePatch-1,activeMIDIchannel-1);
|
||||||
|
if (readSetting(PATCH_ADDR) != activePatch) writeSetting(PATCH_ADDR,activePatch);
|
||||||
doPatchUpdate = 0;
|
doPatchUpdate = 0;
|
||||||
}
|
}
|
||||||
if (pressureSensor > breathThrVal) {
|
if (pressureSensor > breathThrVal) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue