created pong message.

This commit is contained in:
Martin Preuss
2025-05-29 20:23:44 +02:00
parent 619ac1564e
commit dff347bcb7
3 changed files with 39 additions and 2 deletions

View File

@@ -180,11 +180,10 @@ appNetworkHandlePingRequest:
brcc appNetworkHandlePingRequest_end ; jmp on error
push r16 ; buffer num
mov r16, r17 ; DEST addr
ldi r18, NETMSG_CMD_PONG ; msg type
adiw xh:xl, 1
ldi yl, LOW(netInterfaceData)
ldi yh, HIGH(netInterfaceData)
rcall NETMSG_SimpleMsgWrite ; (R16, R17, R18, R19, R20, X)
rcall NETMSG_Pong_Write ; (R16, R17, R18, R19, R20, X)
sbiw xh:xl, 1
pop r16 ; buffer num
rcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X)