avr: re-introduce UID to new VALUE messages, set UID in VALUE response messages.
This commit is contained in:
@@ -357,9 +357,9 @@ onPacketReceived_l1:
|
||||
|
||||
|
||||
onSetValueReceived:
|
||||
adiw xh:xl, CPRO_PACKET_SETVALUE_OFFS_VALUEID
|
||||
adiw xh:xl, CPRO_PACKET_VALUE_OFFS_VALUEID
|
||||
ld r16, X
|
||||
sbiw xh:xl, CPRO_PACKET_SETVALUE_OFFS_VALUEID
|
||||
sbiw xh:xl, CPRO_PACKET_VALUE_OFFS_VALUEID
|
||||
cpi r16, VALUE_ID_REED_CONF
|
||||
brne onSetValueReceived_l1
|
||||
rjmp onSetReedConf
|
||||
@@ -370,9 +370,9 @@ onSetValueReceived_l1:
|
||||
|
||||
onSetReedConf:
|
||||
; get new value
|
||||
adiw xh:xl, CPRO_PACKET_SETVALUE_OFFS_VALUE
|
||||
adiw xh:xl, CPRO_PACKET_VALUE_OFFS_VALUE
|
||||
ld r16, X
|
||||
sbiw xh:xl, CPRO_PACKET_SETVALUE_OFFS_VALUE
|
||||
sbiw xh:xl, CPRO_PACKET_VALUE_OFFS_VALUE
|
||||
; set config
|
||||
rcall REED_SetConfig
|
||||
; send ACK
|
||||
|
||||
Reference in New Issue
Block a user