removed idle time calculation (doesn't work so far).
This commit is contained in:
@@ -34,7 +34,7 @@ CPRO_EnqueueSysStats:
|
||||
push xh
|
||||
push xl
|
||||
mov r16, r6
|
||||
ldi r17, CPRO_PAYLOAD_FLAGS_UID | CPRO_PAYLOAD_FLAGS_SECONDS | (9<<CPRO_PAYLOAD_FLAGS_SHIFT_NUM)
|
||||
ldi r17, CPRO_PAYLOAD_FLAGS_UID | CPRO_PAYLOAD_FLAGS_SECONDS | (4<<CPRO_PAYLOAD_FLAGS_SHIFT_NUM)
|
||||
ldi r18, CPRO_CMD_SYSSTATS
|
||||
rcall cproBeginMsgWithVariablePayload ; (R3, R4, R16, R17, R18, R19, R20, R21, X)
|
||||
; payload
|
||||
@@ -47,13 +47,6 @@ CPRO_EnqueueSysStats:
|
||||
st X+, r17 ; timer interrupts
|
||||
lds r17, timerInterrupts+1
|
||||
st X+, r17
|
||||
|
||||
push xl
|
||||
push xh
|
||||
rcall Timer_CalcIdle ; (r16, r17, r18, r24, r25, X)
|
||||
pop xh
|
||||
pop xl
|
||||
st X+, r16 ; idle percentage
|
||||
pop xl
|
||||
pop xh
|
||||
rcall comCalcAndAddChecksumByte ; (R16, R17, R18, R19, X)
|
||||
|
||||
Reference in New Issue
Block a user