Hi, sorry for the delay.
On Sun, May 29, 2016 at 10:11:11PM +1200, James Sleeman wrote: > Long story short I modified the existing Timing decoder to add. > > 1. Calculation of frequency as well as time > > 2. A second output row showing the average over N periods where N is > configurable. Merged with a few minor consistency changes, thanks a lot! I also updated the resp. test in the sigrok-test repo. I dropped the code chunk below though, that should not be necessary. Samples are not passed to the PDs multiple times (not in recent versions at least, maybe there was a bug in some older code): # It seems that the decoder gets passed the same samples # over and over again sometimes, so we have to make sure # we are only looking at samples we have not already seen # otherwise a big mess happens. if self.last_samplenum >= samplenum: continue Cheers, Uwe. -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel