       bufindex = 0;
     }
     if(bufindex >= 64) bufindex=0;
-  } else if (!isAsleep) {
-    sleep();
-  }
+
+  } else sleep();
 }
 
 


char buf[64];
int8_t bufindex;
boolean isAsleep = false;

void setup() {
  pinMode(11, OUTPUT);


void loop() {
  if (Serial.available()) {
    wakeUp();

    char c = Serial.read();
    buf[bufindex++] = c;
