1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-17 19:19:16 +01:00

refactor(unicorntail): Adjust to p3io command structure changes

This commit is contained in:
icex2 2023-06-11 17:09:12 +02:00 committed by icex2
parent 4c3febfcad
commit 069981ef63

View File

@ -136,7 +136,7 @@ static HRESULT p3io_handle_write(struct irp *irp)
struct iobuf desc;
HRESULT hr;
desc.bytes = req.raw;
desc.bytes = req.raw.data;
desc.nbytes = sizeof(req);
desc.pos = 0;
@ -146,10 +146,11 @@ static HRESULT p3io_handle_write(struct irp *irp)
return hr;
}
switch (p3io_req_cmd(&req)) {
switch (req.hdr.cmd) {
case P3IO_CMD_RS232_OPEN_CLOSE:
EnterCriticalSection(&p3io_cmd_lock);
p3io_uart_cmd_open_close(&req.rs232_open_close, &resp.u8);
p3io_uart_cmd_open_close(
&req.rs232_open_close, &resp.rs232_open_close);
break;