avr: fixed a few errors in new uart_bitbang module.

This commit is contained in:
Martin Preuss
2024-10-20 23:35:26 +02:00
parent 89019f1e60
commit e232b4adbf
4 changed files with 11 additions and 10 deletions

View File

@@ -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