diff --git a/testapp/main.c b/testapp/main.c index 1aa9bc3698de8c3c01d48f5759c2af1c43af6aa7..391b088599a7ec23982bcde82885b99f2dca1e02 100644 --- a/testapp/main.c +++ b/testapp/main.c @@ -288,7 +288,7 @@ int main(void) TMR_Delay(MXC_TMR0, MSEC(1500), 0); // Enable 32 kHz output - //RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NOISE_IMMUNE_MODE, NULL); + RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NOISE_IMMUNE_MODE, NULL); // Enable SPI sys_cfg_spi_t spi17y_master_cfg; @@ -337,7 +337,7 @@ int main(void) #if 1 // Read back ECG samples from the FIFO - if( ecgFIFOIntFlag ) { + if( ecgFIFOIntFlag || GPIO_InGet(&interrupt_pin) == 0) { ecgFIFOIntFlag = false; //printf("Int\n");