indent issue
This commit is contained in:
parent
068300c5f5
commit
cc75ae57da
@ -284,7 +284,7 @@ void cUiUpdatePower(void)
|
||||
|
||||
let nonActivated = 0;
|
||||
function detectDevices() {
|
||||
//control.dmesg(`detect devices (${nonActivated} na)`)
|
||||
control.dmesg(`detect devices (${nonActivated} na)`)
|
||||
const inDcm = analogMM.slice(AnalogOff.InDcm, DAL.NUM_INPUTS)
|
||||
const inConn = analogMM.slice(AnalogOff.InConn, DAL.NUM_INPUTS)
|
||||
let numChanged = 0;
|
||||
@ -334,6 +334,7 @@ void cUiUpdatePower(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (uartSensors.length > 0) {
|
||||
setUartModes();
|
||||
@ -372,7 +373,6 @@ void cUiUpdatePower(void)
|
||||
}
|
||||
//control.dmesg(`detect devices done`)
|
||||
}
|
||||
}
|
||||
|
||||
export class Sensor extends control.Component {
|
||||
protected _port: number // this is 0-based
|
||||
@ -588,12 +588,12 @@ void cUiUpdatePower(void)
|
||||
while (ports.length) {
|
||||
const port = ports.pop();
|
||||
const status = waitNonZeroUartStatus(port)
|
||||
control.dmesg(`UART set mode ${status} at ${port}`);
|
||||
control.dmesg(`UART status ${status} at ${port}`);
|
||||
}
|
||||
}
|
||||
|
||||
function updateUartMode(port: number, mode: number) {
|
||||
control.dmesg(`UART set mode to ${mode} at ${port}`)
|
||||
control.dmesg(`UART update mode to ${mode} at ${port}`)
|
||||
devcon.setNumber(NumberFormat.Int8LE, DevConOff.Connection + port, DAL.CONN_INPUT_UART)
|
||||
devcon.setNumber(NumberFormat.Int8LE, DevConOff.Type + port, 33)
|
||||
devcon.setNumber(NumberFormat.Int8LE, DevConOff.Mode + port, mode)
|
||||
@ -610,7 +610,7 @@ void cUiUpdatePower(void)
|
||||
control.dmesg(`UART clear changed at ${port}`)
|
||||
uartClearChange(port)
|
||||
} else {
|
||||
control.dmesg(`UART status ${status}`);
|
||||
control.dmesg(`UART status ${status} at ${port}`);
|
||||
break;
|
||||
}
|
||||
pause(10)
|
||||
|
Loading…
Reference in New Issue
Block a user