| 530 | } |
| 531 | |
| 532 | void syncProcessor::checkSyncArray() |
| 533 | { |
| 534 | |
| 535 | if(syncArray[syncArrayIndex].retrace) |
| 536 | { |
| 537 | syncArray[0]=syncArray[syncArrayIndex]; |
| 538 | syncArrayIndex=0; |
| 539 | // syncPosition=syncArray[0].end + FILTERDELAYCORRECTION; |
| 540 | addToLog(QString("Found retrace: start:%1 end:%2 width %3").arg(syncArray[0].start).arg(syncArray[0].end).arg(syncArray[0].end-syncArray[0].start),LOGSYNCACCEPTED); |
| 541 | if(syncProcesState==INSYNC) |
| 542 | { |
| 543 | retraceFlag=true; |
| 544 | syncProcesState=RETRACEWAIT; |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | if(syncArrayIndex>=(MAXSYNCENTRIES-1)) |
| 549 | { |
| 550 | //shift syncArray |
| 551 | dropTop(); |
| 552 | } |
| 553 | addToLog(QString("Found sync: start:%1 end:%2 width %3 at %4").arg(syncArray[syncArrayIndex].start).arg(syncArray[syncArrayIndex].end).arg(syncArray[syncArrayIndex].end-syncArray[syncArrayIndex].start).arg(syncArrayIndex),LOGSYNCACCEPTED); |
| 554 | } |
| 555 | |
| 556 | |
| 557 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected