 				}
 			}
 			// if periodX and periodY IS NOT a valid pair
-			if ( signals[i] == 0 ) {
+			if (signals[i] == 0) {
 				numValid = 0;
 				numInvalid += 1;
 				// check if enough negative signals have been detected

			}

			// if periodX and periodY IS a valid pair
			if ( signals[i] == 1 ) {
				numValid += 1;
				numInvalid = 0;
				// a job is detected when we get enough valid signals in a row

			// Job done
			getStringFromMem(displayNewTime);
			Serial.print(totalTime/60);
			Serial.print(F(":"));
			Serial.println(totalTime%60);
		}
	}
	// -------------------------------------------------------------------------
	// Write time data to card
	if ( (0 < elapsedTime) && (elapsedTime < 5*quota) ) {
		sendCommand(CMD_WRITE, blockID, machineID, keyA, totalTime);
		delay(waitforWriteResponse);
		isValidResponse = getResponse(readData);
