From f1d9075c9d4c6a854788ae5a9d907d49259bace7 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Sat, 12 Oct 2019 18:42:12 -0700 Subject: [PATCH] more logging --- libs/core/input.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/core/input.ts b/libs/core/input.ts index 5c5d14f3..2739147f 100644 --- a/libs/core/input.ts +++ b/libs/core/input.ts @@ -600,6 +600,7 @@ void cUiUpdatePower(void) } function setUartMode(port: number, mode: number) { + control.dmesg(`UART set mode ${mode} at ${port}`); const UART_PORT_CHANGED = 1 while (true) { if (port < 0) return @@ -625,9 +626,9 @@ void cUiUpdatePower(void) DAL.MAX_DEVICE_DATALENGTH) } - function getUartNumber(fmt: NumberFormat, off: number, port: number) { + function getUartNumber(fmt: NumberFormat, off: number, port: number): number { if (port < 0) return 0 - let index = uartMM.getNumber(NumberFormat.UInt16LE, UartOff.Actual + port * 2) + const index = uartMM.getNumber(NumberFormat.UInt16LE, UartOff.Actual + port * 2) return uartMM.getNumber(fmt, UartOff.Raw + DAL.MAX_DEVICE_DATALENGTH * 300 * port + DAL.MAX_DEVICE_DATALENGTH * index + off) }