   radio.setRetries(2,15);
   network.begin(RADIOCHANNEL, NODE);
   radio.setDataRate(RF24_250KBPS);
-  digitalWrite(STATUSLED,STATUSLED_ON); 
+  digitalWrite(STATUSLED,STATUSLED_ON);
   // initialisation beginns
   while ( ! init_finished ) {
     if ( init_transmit && init_loop_counter < 1 ) {

      network.read(rxheader,&payload,sizeof(payload));
      init_transmit=false;
      init_loop_counter=0;
      txheader.type=rxheader.type;
      switch (rxheader.type) {
        case 111: {
        // Init des Sleeptimers
          sleeptime=payload.value;
          break; }
        case 112: {
          // radio on (=1) or off (=0) when sleep
          if (payload.value > 0.5) radiomode = radio_listen; else radiomode=radio_sleep;
          break; }
        case 118: {
          init_finished=true;
          break; }
        default: {
            // nothing right now
          } 
      }
      //returns every message
      network.write(txheader,&payload,sizeof(payload));
    }
    sleep4ms(30);
    init_loop_counter--;
    //just in case of initialisation is interrupted
    if (init_loop_counter < -1000) init_transmit=true;
  }
  digitalWrite(STATUSLED,STATUSLED_OFF); 
  network_busy=true;
}


  
  //#################
  // END run frequently
  //#################
  }
  if ( network.available() ) {
    network_busy = true;
    stayawakeloopcount=0;
    network.read(rxheader,&payload,sizeof(payload));
    action_loop();
  }
  digitalWrite(STATUSLED,STATUSLED_OFF);
  if (stayawakeloopcount > STAYAWAKEDEFAULT) {
    network_busy=false;
    stayawakeloopcount=0;
  }
  if ( network_busy ) {
    sleep4ms(250);
    stayawakeloopcount++;
  } else {
    if ( radiomode == radio_sleep ) radio.powerDown();
    sleep4ms(sleeptime*1000);
    if ( radiomode == radio_sleep ) radio.powerUp();
    sleep4ms(1000);
  }
}
