From c4aca143a06d8dd207ff86c4b4f5b4b5bdd172ff Mon Sep 17 00:00:00 2001 From: "gruvin@gmail.com" Date: Thu, 1 Nov 2012 10:37:31 +0000 Subject: [PATCH] G9X / stock boards -- last THREE commits in error! (Thanks Bertrand). Good grief. This time! --- src/pulses_avr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pulses_avr.cpp b/src/pulses_avr.cpp index b9b740760..a6791447c 100644 --- a/src/pulses_avr.cpp +++ b/src/pulses_avr.cpp @@ -501,7 +501,7 @@ void sendByteDsm2(uint8_t b) //max 10changes 0 10 10 10 10 1 if(lev == nlev){ len += BITLEN_DSM2; }else{ -#if defined (GRUVIN9XPCB) +#if defined (PCBGRUVIN9X) // G: Compensate for main clock synchronisation -- to get accurate 8us bit length // NOTE: This is probably required for the stock board (S/W bit-bang mode) also, // but I did not want to commit that to trunk without testing it first. @@ -517,7 +517,7 @@ void sendByteDsm2(uint8_t b) //max 10changes 0 10 10 10 10 1 } b = (b>>1) | 0x80; //shift in stop bit } -#if defined (GRUVIN9XPCB) +#if defined (PCBGRUVIN9X) _send_1(len+BITLEN_DSM2+3); // 2 stop bits #else _send_1(len+BITLEN_DSM2-1); // 2 stop bits @@ -571,7 +571,7 @@ void setupPulsesDsm2() pulses2MHzWPtr -= 1; //remove last stopbits and -#if !defined(GRUVIN9XPCB) +#if !defined(PCBGRUVIN9X) //G: Removed to get waveform correct on analyser. Leave in for stock board until tests can be done. _send_1(255); // prolong them #endif