ddrio: Fix p3io and extio lighting output being swapped with one another

the header, mm and smx modules had it right

also fixes p3io responses being the wrong size in 2 cases
This commit is contained in:
Will Xyen
2020-06-29 06:47:31 -07:00
parent d1080905e5
commit be4df516fd
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ void p3io_uart_cmd_open_close(
}
end:
p3io_resp_init(&resp->hdr, sizeof(resp), &req->hdr);
p3io_resp_init(&resp->hdr, sizeof(*resp), &req->hdr);
resp->status = 0;
resp->u8 = FAILED(hr);
}
@@ -167,7 +167,7 @@ void p3io_uart_cmd_write(
hr = p3io_uart_write(p3io_uart_fds[req->port_no], &iobuf);
end:
p3io_resp_init(&resp->hdr, sizeof(resp), &req->hdr);
p3io_resp_init(&resp->hdr, sizeof(*resp), &req->hdr);
resp->status = FAILED(hr);
resp->nbytes = iobuf.pos;
}