 #define BRX 8
 #define SRV 7
 #define CARRIER 2
+#define NOFRAME 3
+#define NOFRAME_TRESHOLD 0xFFFF
 #define ERROR -1
 
-int sleepms = 5;
-byte iobyte = 128;
+int sleepms;
+byte iobyte;
 byte bytebits[8];
 Servo servo;
 

	pinMode(BRX, INPUT);
	servo.attach(SRV);
	Serial.begin(9600);
}

byte bytebitsGet() {

	}
}

byte readFrame(unsigned int cyclecount0, unsigned int cyclecount1)
{
	if (cyclecount0 < cyclecount1) {
		if (cyclecount1 < 2 * cyclecount0)
