     writeLongInEEPROM(1, A_Values_Period);
     asm volatile ("  jmp 0");
     break;
-  
+
   case COMMAND_SET_ADRESS:
     i2cAdress = readLong();
     writeLongInEEPROM(5, i2cAdress);

  longToByte(value,buffer);
  for (int i = 0;i<sizeof(long);i++){
    EEPROM.write(firstByte+i,buffer[i]);
    #ifdef LOG_SERIAL
    Serial.println(buffer[i]);
    #endif
  }
}



// COMMAND_READ_SENSORS
void writeSensorsAsBytes(){
  int bufferSize = sizeof(long)+sizeof(byte)+sizeof(int)*(sensor_SIZE)+sizeof(byte);
  byte buffer[bufferSize];

  longToByte((unsigned long)(millis() - A_values_timestamp),buffer);
  buffer[sizeof(long)] = (byte)sensor_SIZE;
  
  for (int i=0;i<sensor_SIZE;i++){
    intToByte(A_Values[i], &buffer[sizeof(long)+sizeof(byte)+sizeof(int)*i]);
  }
  
  buffer[bufferSize-1] = 0x00; //semaphore

  Wire.write(buffer, bufferSize); 
}
