- Dbprintf("Trigger kicked! Value: %d, Dumping Samples Hispeed now.", r >> 8);
- int waitcount = samplesToSkip; // lets wait 40000 ticks of pck0
- while(waitcount != 0) {
- if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) {
- waitcount--;
+
+ if(!BUTTON_PRESS()) {
+ int waitcount = samplesToSkip; // lets wait 40000 ticks of pck0
+ while(waitcount != 0) {
+ if(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) {
+ waitcount--;
+ }