mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-12-06 07:37:38 +00:00
Invert serial atmega bug correction
This commit is contained in:
1 parent
7d41017850
commit
41d579dc23
1 file changed
+3
-1
@@ -974,7 +974,9 @@ void Serial_write( uint8_t byte )
|
|||||||
#ifdef INVERT_SERIAL
|
#ifdef INVERT_SERIAL
|
||||||
byte |= 1 ; // Start bit
|
byte |= 1 ; // Start bit
|
||||||
#endif
|
#endif
|
||||||
uint8_t next = (SerialControl.head + 2) & 0x7f ;
|
uint8_t next = SerialControl.head + 2;
|
||||||
|
if(next>TXBUFFER_SIZE)
|
||||||
|
next=0;
|
||||||
if ( next != SerialControl.tail )
|
if ( next != SerialControl.tail )
|
||||||
{
|
{
|
||||||
SerialControl.data[SerialControl.head] = byte ;
|
SerialControl.data[SerialControl.head] = byte ;
|
||||||
|
|||||||
Reference in new issue
Block a user