avr: removed recv from led_simple (no need for it anymore).
This commit is contained in:
@@ -23,12 +23,6 @@ modulesOnPacketReceived:
|
|||||||
bigcall SK6812_OnPacketReceived
|
bigcall SK6812_OnPacketReceived
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODULES_LED_SIMPLE
|
|
||||||
#ifdef MODULES_NETWORK
|
|
||||||
bigcall LedSimple_OnPacketReceived
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MODULES_DS3231
|
#ifdef MODULES_DS3231
|
||||||
#ifdef MODULES_NETWORK
|
#ifdef MODULES_NETWORK
|
||||||
bigcall Ds3231_OnPacketReceived
|
bigcall Ds3231_OnPacketReceived
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
; ***************************************************************************
|
|
||||||
; copyright : (C) 2026 by Martin Preuss
|
|
||||||
; email : martin@libchipcard.de
|
|
||||||
;
|
|
||||||
; ***************************************************************************
|
|
||||||
; * This file is part of the project "AqHome". *
|
|
||||||
; * Please see toplevel file COPYING of that project for license details. *
|
|
||||||
; ***************************************************************************
|
|
||||||
|
|
||||||
|
|
||||||
; ---------------------------------------------------------------------------
|
|
||||||
; @routine LedSimple_OnPacketReceived @global
|
|
||||||
;
|
|
||||||
; @clobbers any, -X
|
|
||||||
|
|
||||||
LedSimple_OnPacketReceived:
|
|
||||||
adiw xh:xl, NETMSG_OFFS_CMD ; command
|
|
||||||
ld r16, X
|
|
||||||
sbiw xh:xl, NETMSG_OFFS_CMD
|
|
||||||
cpi r16, NETMSG_CMD_VALUE_SET
|
|
||||||
breq LedSimple_OnPacketReceived_set
|
|
||||||
clc ; unexpected msg
|
|
||||||
ret
|
|
||||||
LedSimple_OnPacketReceived_set:
|
|
||||||
rcall NETMSG_ValueRead ; (none)
|
|
||||||
cpi r17, VALUE_ID_LEDSIMPLE_TIMING
|
|
||||||
breq LedSimple_OnPacketReceived_setTiming
|
|
||||||
clc
|
|
||||||
ret
|
|
||||||
LedSimple_OnPacketReceived_setTiming:
|
|
||||||
tst r18
|
|
||||||
breq LedSimple_OnPacketReceived_setDefaultTiming
|
|
||||||
ldi r20, 60
|
|
||||||
rcall LedSimple_SetTiming
|
|
||||||
rjmp LedSimple_OnPacketReceived_sendAck
|
|
||||||
LedSimple_OnPacketReceived_setDefaultTiming:
|
|
||||||
rcall LedSimple_SetDefaultTiming
|
|
||||||
LedSimple_OnPacketReceived_sendAck:
|
|
||||||
push xl
|
|
||||||
push xh
|
|
||||||
ldi r23, NETMSG_CMD_VALUE_SET_ACK
|
|
||||||
rcall Main_SendValueResponse
|
|
||||||
pop xh
|
|
||||||
pop xl
|
|
||||||
sec
|
|
||||||
ret
|
|
||||||
; @end
|
|
||||||
Reference in New Issue
Block a user