SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 1 match

 Go to advanced search

Re: nRF24AP1 - ANT Code - Garmin Heart-Rate Monitor

 by forcecode ¦  Thu Aug 09, 2012 1:32 am ¦  Forum: Wireless/RF ¦  Topic: nRF24AP1 - ANT Code - Garmin Heart-Rate Monitor ¦  Replies: 72 ¦  Views: 40549

I think the real problem is not with timing etc.
Just make all variables inside ANT_rxHandler() static or make them global, so the processing status is preserved between successive calls.

int ANT_rxHandler()
static int n, fd, rc, inmsg = FALSE;
static UCHAR chr, msgN;