 
 int remoteEvent = 0;
 bool checkRemote(){
-        if((millis() - remoteEvent) < remoteDelay)
-          return false;
 	char data[20];
 	sprintf(data, "card=%s", card);
 	int retval = client.post("/api/v1/checkCard", data);

#endif
inline void copyFromBuffer(int cyclicBufferPosition){
	for(int i = 0; i < LENGTH; ++i)
		card[i] = buffer[bufferIndex(cyclicBufferPosition + i + offset)];
}

#ifdef STASZEK_MODE


int buttonEvent = 0;
int doorEvent = 0;

int cyclicBufferPosition = 0;
int lastSerialEventTime = 0;
bool eventReceived = false;

inline bool isStable(const int lastEvent){
	return (millis() - lastEvent) > debounceDelay;
