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:
parent
4c3febfcad
commit
069981ef63
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user