mock: remove excess fields

These aren't really used.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2024-01-10 12:15:54 +08:00
parent 19bdc8b658
commit c165b2e7b1

View File

@ -83,28 +83,13 @@ function getStatus(_request: Request, response: Response) {
},
ports: {
'uart': {
'name': 'serial',
'baud_rate': 115200,
'parity': 'none',
'stop_bits': 1,
'data_bits': 8,
'flow_control': 'none',
},
'swo': {
'name': 'swo',
'baud_rate': 0,
'parity': 'none',
'stop_bits': 1,
'data_bits': 8,
'flow_control': 'none',
},
'uuart': {
'name': 'uuart',
'baud_rate': 0,
'parity': 'none',
'stop_bits': 1,
'data_bits': 8,
'flow_control': 'none',
},
},
'updates': {
@ -152,7 +137,6 @@ function getTarget(_request: Request, response: Response) {
});
}
function getSerialPort(request: Request, response: Response) {
var serialPorts = {
'uart': {