Saving patch number to EEPROM.

This commit is contained in:
Johan Berglund 2017-09-11 19:53:15 +02:00
parent a59729b063
commit 7598f62986

View file

@ -462,6 +462,7 @@ void loop() {
activePatch = patch;
usbMIDI.sendProgramChange(activePatch-1,activeMIDIchannel);
dinMIDIsendProgramChange(activePatch-1,activeMIDIchannel-1);
if (readSetting(PATCH_ADDR) != activePatch) writeSetting(PATCH_ADDR,activePatch);
doPatchUpdate = 0;
}
if (pressureSensor > breathThrVal) {