private void setMatrixArray(int[] readBuffer) {

        //1st report
        if (readBuffer[0] == 0x1a) {
            oldMatrix[4] = matrix[4];
            oldMatrix[5] = matrix[5];
            oldMatrix[6] = matrix[6];
            oldMatrix[7] = matrix[7];
            /*deb*/
            System.out.println("setting matrix[4...7]");
            matrix[4] = readBuffer[1];
            matrix[5] = readBuffer[2];
            matrix[6] = readBuffer[3];
            matrix[7] = readBuffer[4];
        }
        //2nd report
        else if (readBuffer[0] == 0x19) {
            oldMatrix[0] = matrix[0];
            oldMatrix[1] = matrix[1];
            oldMatrix[2] = matrix[2];
            oldMatrix[3] = matrix[3];
            /*deb*/
            System.out.println("setting matrix[0...3]");
            matrix[0] = readBuffer[1];
            matrix[1] = readBuffer[2];
            matrix[2] = readBuffer[3];
            matrix[3] = readBuffer[4];
        }
        //3rd report
        else if (readBuffer[0] == 0x1b) {
            oldMatrix[8] = matrix[8];
            oldMatrix[9] = matrix[9];
            oldMatrix[10] = matrix[10];
            oldMatrix[11] = matrix[11];
            /*deb*/
            System.out.println("setting matrix[8...11]");
            matrix[8] = readBuffer[1];
            matrix[9] = readBuffer[2];
            matrix[10] = readBuffer[3];
            matrix[11] = readBuffer[4];
        }
        //4th report
        else if (readBuffer[0] == 0x1c) {
            oldMatrix[12] = matrix[12];
            oldMatrix[13] = matrix[13];
            oldMatrix[14] = matrix[14];
            oldMatrix[15] = matrix[15];
            /*deb*/
            System.out.println("setting matrix[12...15]");
            matrix[12] = readBuffer[1];
            matrix[13] = readBuffer[2];
            matrix[14] = readBuffer[3];
            matrix[15] = readBuffer[4];
        }


        //create event
        if (!doScan) {
            if (iow.getId() == AbstractIowDevice.IOW40ID && readBuffer[0] == 0x19) {

                SwitchMatrixEvent event = new SwitchMatrixEvent(matrix, oldMatrix);
                for (int i = 0; i < listeners.size(); i++) {
                    SwitchMatrixChangeListener smcl = (SwitchMatrixChangeListener) listeners.get(i);
                    (new NotifierThread(event, smcl)).start();
                }
			}
		}
	}