com2wi2: test with two interfaces.
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
; ***************************************************************************
|
||||
; defines
|
||||
|
||||
.equ APP_STATS_INTERVAL_MINS = 30
|
||||
;.equ APP_STATS_INTERVAL_MINS = 30
|
||||
.equ APP_STATS_INTERVAL_MINS = 10
|
||||
|
||||
|
||||
|
||||
@@ -74,18 +75,20 @@ AppStats_OnEveryMinute_store:
|
||||
andi r17, 3
|
||||
brne AppStats_OnEveryMinute_sendStats
|
||||
; send device announcement
|
||||
push yl
|
||||
push yh
|
||||
ldi yl, LOW(netInterfaceData)
|
||||
ldi yh, HIGH(netInterfaceData)
|
||||
rcall AppNetwork_SendDevice
|
||||
push r16
|
||||
push yl
|
||||
push yh
|
||||
ldi yl, LOW(netInterfaceData)
|
||||
ldi yh, HIGH(netInterfaceData)
|
||||
rcall AppNetwork_SendDevice
|
||||
#ifdef APP_STATS_NETDEV2
|
||||
ldi yl, LOW(netInterfaceData2)
|
||||
ldi yh, HIGH(netInterfaceData2)
|
||||
rcall AppNetwork_SendDevice
|
||||
ldi yl, LOW(netInterfaceData2)
|
||||
ldi yh, HIGH(netInterfaceData2)
|
||||
rcall AppNetwork_SendDevice
|
||||
#endif
|
||||
pop yh
|
||||
pop yl
|
||||
pop yh
|
||||
pop yl
|
||||
pop r16
|
||||
AppStats_OnEveryMinute_sendStats:
|
||||
cpi r16, 2
|
||||
breq AppStats_OnEveryMinute_sendMemStats
|
||||
@@ -106,6 +109,8 @@ AppStats_OnEveryMinute_sendStats:
|
||||
; add more here
|
||||
ret
|
||||
AppStats_OnEveryMinute_sendMemStats:
|
||||
ldi yl, LOW(netInterfaceData)
|
||||
ldi yh, HIGH(netInterfaceData)
|
||||
rjmp AppNetwork_SendMemStats
|
||||
|
||||
AppStats_OnEveryMinute_sendRecvStats1:
|
||||
|
||||
Reference in New Issue
Block a user