avr: t03 now at least writes tty message once!
This commit is contained in:
@@ -270,8 +270,8 @@ initModules:
|
||||
.include "modules/uart_hw/lowlevel.asm"
|
||||
.include "modules/uart_hw/m_lowlevel_uart.asm"
|
||||
.include "modules/uart_hw/lowlevel_uart1.asm"
|
||||
.include "modules/uart_hw/msglevel_recv.asm"
|
||||
.include "modules/uart_hw/msglevel_send.asm"
|
||||
;.include "modules/uart_hw/msglevel_recv.asm"
|
||||
;.include "modules/uart_hw/msglevel_send.asm"
|
||||
.include "modules/uart_hw/ttyonuart1.asm"
|
||||
|
||||
|
||||
@@ -293,8 +293,14 @@ maybeSendDeviceMsg:
|
||||
push r16
|
||||
adiw xh:xl, 1
|
||||
rcall writeDeviceMsg
|
||||
sbiw xh:xl, 1
|
||||
pop r16
|
||||
rcall UART_HW_InterfaceAddOutgoingMsgNum
|
||||
push r16
|
||||
rcall TtyOnUart1_SendBuffer
|
||||
pop r16
|
||||
brcs maybeSendDeviceMsg_resetCounter
|
||||
rcall UART_HW_FixedBuffers_ReleaseByNum ; (R16, X)
|
||||
rjmp maybeSendDeviceMsg_end
|
||||
; reset counter
|
||||
maybeSendDeviceMsg_resetCounter:
|
||||
ldi r24, LOW(SEND_DEVICE_EVERY)
|
||||
@@ -302,6 +308,7 @@ maybeSendDeviceMsg_resetCounter:
|
||||
maybeSendDeviceMsg_storeCounter:
|
||||
sts deviceCounter, r24
|
||||
sts deviceCounter+1, r25
|
||||
maybeSendDeviceMsg_end:
|
||||
ret
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user