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