fix mandemod initialisation and add Transit tag trace

This commit is contained in:
adam@algroup.co.uk 2009-09-10 15:12:20 +00:00
commit ac86b65681
3 changed files with 40007 additions and 1 deletions

View file

@ -2532,7 +2532,12 @@ static void Cmdmanchesterdemod(char *str) {
/* Detect first transition */
/* Lo-Hi (arbitrary) */
for (i = 0; i < GraphTraceLen; i++)
/* skip to the first high */
for (i= 0; i < GraphTraceLen; i++)
if(GraphBuffer[i] == high)
break;
/* now look for the first low */
for (; i < GraphTraceLen; i++)
{
if (GraphBuffer[i] == low)
{