fixed a bug.
This commit is contained in:
@@ -83,6 +83,13 @@
|
|||||||
.equ UART_HW_MSGNUMOUTBUF_SIZE = 8
|
.equ UART_HW_MSGNUMOUTBUF_SIZE = 8
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; ---------------------------------------------------------------------------
|
||||||
|
; defines for values
|
||||||
|
|
||||||
|
.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88
|
||||||
|
|
||||||
|
|
||||||
; ***************************************************************************
|
; ***************************************************************************
|
||||||
; code segment
|
; code segment
|
||||||
|
|
||||||
@@ -202,13 +209,16 @@ checkRecvdMsg:
|
|||||||
brcc checkRecvdMsg_end ; no msg, jmp
|
brcc checkRecvdMsg_end ; no msg, jmp
|
||||||
rcall NET_Buffer_Locate ; (R17)
|
rcall NET_Buffer_Locate ; (R17)
|
||||||
; let system handle incoming messages
|
; let system handle incoming messages
|
||||||
push xl
|
push r16
|
||||||
push xh
|
push xl
|
||||||
rcall onMessageReceived
|
push xh
|
||||||
rcall mainModulesOnPacketReceived
|
adiw xh:xl, 1
|
||||||
rcall mainAppsOnPacketReceived
|
rcall onMessageReceived
|
||||||
pop xh
|
rcall mainModulesOnPacketReceived
|
||||||
pop xl
|
rcall mainAppsOnPacketReceived
|
||||||
|
pop xh
|
||||||
|
pop xl
|
||||||
|
pop r16
|
||||||
|
|
||||||
; forward to other interface
|
; forward to other interface
|
||||||
ld r17, X
|
ld r17, X
|
||||||
|
|||||||
Reference in New Issue
Block a user