diff --git a/linnstrument-firmware.ino b/linnstrument-firmware.ino index a0adc750..cf5a069e 100644 --- a/linnstrument-firmware.ino +++ b/linnstrument-firmware.ino @@ -868,6 +868,12 @@ boolean switchPressAtStartup(byte switchRow) { return false; } +void activateSleepMode() { + controlButton = -1; + clearDisplayImmediately(); + setDisplayMode(displaySleep); +} + void applyLowPowerMode() { // change the behavior for low power mode if (Device.operatingLowPower) { diff --git a/ls_handleTouches.ino b/ls_handleTouches.ino index d75e105c..da3e9049 100644 --- a/ls_handleTouches.ino +++ b/ls_handleTouches.ino @@ -373,9 +373,7 @@ boolean handleNewTouch() { // check if we should activate sleep mode if ((sensorRow == GLOBAL_SETTINGS_ROW && cell(0, PER_SPLIT_ROW).touched == touchedCell) || (sensorRow == PER_SPLIT_ROW && cell(0, GLOBAL_SETTINGS_ROW).touched == touchedCell)) { - controlButton = -1; - clearDisplayImmediately(); - setDisplayMode(displaySleep); + activateSleepMode(); return false; } diff --git a/ls_settings.ino b/ls_settings.ino index 76ca3e0f..fe6a9644 100644 --- a/ls_settings.ino +++ b/ls_settings.ino @@ -2020,6 +2020,9 @@ void handleGlobalSettingNewTouch() { case 1: changeMidiIO(0); break; + case 2: + activateSleepMode(); + break; case 3: if (!Device.serialMode) { Device.operatingLowPower = !Device.operatingLowPower;