 
 
 // Delays [ms]
-#define IDLE_PAUSE    2000
-#define BLINK_DELAY    100
-#define PAUSE_DELAY   1000
-#define READ_DELAY      50
-#define IDLE_TIMEOUT (1000L * 60L)
-#define ROLLOVER_GAP (1000L * 60L * 60L)
+#define IDLE_PAUSE     2000
+#define BLINK_DELAY     100
+#define PAUSE_DELAY    1000
+#define READ_DELAY       50
+#define IDLE_TIMEOUT  (1000L * 60L)
+#define PAUSE_TIMEOUT (1000L * 60L *  5L)
+#define ROLLOVER_GAP  (1000L * 60L * 60L)
 
 // Trellis LED brightness 1..15
 #define BRIGHTNESS_SLEEPTICK  0

}

void onKey(byte index) {
  nextTimeoutTick = 0;

  // No keys when paused
  if (state == PLAY_PAUSED) {
    // nop


  // Same key pressed again
  } else if (state == PLAY_SELECTED && playingAlbum == index) {
    nextTimeoutTick = 0; // no timeout during playing
    stopPlaying();
    onTryNextTrack();

  // Some (other) key pressed
  } else {
    if (state == PLAY_SELECTED) stopPlaying();
    nextTimeoutTick = 0; // no timeout during playing
    enablePlayer(true);
    enableAmplifier(!headset);
    onStartFirstTrack(index);
