void calculateChecksum(IPatch p, int offset) {
void calculateChecksum(Patch p, int offset) {
    void calculateChecksum(IPatch p, int offset) {// 	ErrorMsg.reportStatus("offset = " + offset);	int size;	for (int i = 0; i < NUM_PKT; i++, offset += size) {	    size = PKT_SIZE[i];	    int chkSumIdx = offset + size - 2;// 	    sysex[chkSumIdx] = calcChkSum(sysex, offset + 6, chkSumIdx - 1);	    calculateChecksum(p, offset + 6, chkSumIdx - 1, chkSumIdx);	}    }