From 7598f62986c6d85498b8322ce37c9ac0c403c158 Mon Sep 17 00:00:00 2001 From: Johan Berglund Date: Mon, 11 Sep 2017 19:53:15 +0200 Subject: [PATCH] Saving patch number to EEPROM. --- NuEVI.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/NuEVI.ino b/NuEVI.ino index 9170f97..49457aa 100644 --- a/NuEVI.ino +++ b/NuEVI.ino @@ -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) {