Error in Arduino patch