Fixed a typo.
This commit is contained in:
@@ -111,8 +111,8 @@ AppNetwork_HandleMsg:
|
|||||||
sbiw xh:xl, NETMSG_OFFS_CMD
|
sbiw xh:xl, NETMSG_OFFS_CMD
|
||||||
cpi r16, NETMSG_CMD_REBOOT_REQUEST
|
cpi r16, NETMSG_CMD_REBOOT_REQUEST
|
||||||
breq AppNetwork_HandleMsg_handleRebootMsg
|
breq AppNetwork_HandleMsg_handleRebootMsg
|
||||||
cpi r16, NETMSG_CMD_HAVE_ADDRESS
|
cpi r16, NETMSG_CMD_NEED_ADDRESS
|
||||||
brcs AppNetwork_HandleMsg_clcRet ; lower than "HAVE_ADDR"
|
brcs AppNetwork_HandleMsg_clcRet ; lower than "HAVE_NEED"
|
||||||
cpi r16, NETMSG_CMD_ADDRESS_RANGE
|
cpi r16, NETMSG_CMD_ADDRESS_RANGE
|
||||||
breq AppNetwork_HandleMsg_handleRangeMsg
|
breq AppNetwork_HandleMsg_handleRangeMsg
|
||||||
brcc AppNetwork_HandleMsg_clcRet ; higher or equal to "ADDR_RANGE"
|
brcc AppNetwork_HandleMsg_clcRet ; higher or equal to "ADDR_RANGE"
|
||||||
@@ -122,9 +122,9 @@ AppNetwork_HandleMsg_handleRangeMsg:
|
|||||||
rjmp AppNetwork_HandleMsg_clcRet
|
rjmp AppNetwork_HandleMsg_clcRet
|
||||||
|
|
||||||
AppNetwork_HandleMsg_handleAddrMsg:
|
AppNetwork_HandleMsg_handleAddrMsg:
|
||||||
rcall NETMSG_Address_Read ; (R18, R19)
|
rcall NETMSG_Address_Read ; R18=cmd, R19=addr(R18, R19)
|
||||||
mov r16, r18
|
mov r16, r18
|
||||||
subi r16, NETMSG_CMD_HAVE_ADDRESS
|
subi r16, NETMSG_CMD_NEED_ADDRESS
|
||||||
ldi zl, LOW(appNetworkMsgTable)
|
ldi zl, LOW(appNetworkMsgTable)
|
||||||
ldi zh, HIGH(appNetworkMsgTable)
|
ldi zh, HIGH(appNetworkMsgTable)
|
||||||
add zl, r16
|
add zl, r16
|
||||||
|
|||||||
Reference in New Issue
Block a user