avr: fixed a few errors in new uart_bitbang module.
This commit is contained in:
@@ -29,9 +29,7 @@ uartBitbang_ReceivePacketIntoBuffer:
|
||||
rcall uartBitbang_ReceiveByte ; read byte (R16, R17, R20, R21, R22)
|
||||
pop r17 ; pop from R16 to R17
|
||||
brcc uartBitbang_ReceivePacketIntoBuffer_ioError
|
||||
#ifdef COM_ACCEPT_ALL_DEST ; accept every destination address
|
||||
rjmp uartBitbang_ReceivePacketIntoBuffer_acceptAddr
|
||||
#else
|
||||
#ifndef COM_ACCEPT_ALL_DEST ; accept every destination address
|
||||
; compare destination address (accept "FF" and own address)
|
||||
cp r16, r17
|
||||
breq uartBitbang_ReceivePacketIntoBuffer_acceptAddr
|
||||
|
||||
Reference in New Issue
Block a user