diff --git a/avr/devices/t03/main/main.asm b/avr/devices/t03/main/main.asm index 43e61dd..6fdd478 100644 --- a/avr/devices/t03/main/main.asm +++ b/avr/devices/t03/main/main.asm @@ -83,6 +83,13 @@ .equ UART_HW_MSGNUMOUTBUF_SIZE = 8 + +; --------------------------------------------------------------------------- +; defines for values + +.equ VALUE_ID_LEDSIMPLE_TIMING = 0x88 + + ; *************************************************************************** ; code segment @@ -202,14 +209,17 @@ checkRecvdMsg: brcc checkRecvdMsg_end ; no msg, jmp rcall NET_Buffer_Locate ; (R17) ; let system handle incoming messages - push xl - push xh - rcall onMessageReceived - rcall mainModulesOnPacketReceived - rcall mainAppsOnPacketReceived - pop xh - pop xl - + push r16 + push xl + push xh + adiw xh:xl, 1 + rcall onMessageReceived + rcall mainModulesOnPacketReceived + rcall mainAppsOnPacketReceived + pop xh + pop xl + pop r16 + ; forward to other interface ld r17, X andi r17, (NET_IFACE_BUFFER_IFACENUM1_BIT | NET_IFACE_BUFFER_IFACENUM0_BIT)