mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2024-11-15 02:37:37 +01:00
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:
parent
d1080905e5
commit
be4df516fd
@ -168,7 +168,7 @@ void ddr_io_set_lights_p3io(uint32_t lights)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0x0E; i <= 0x1E; i++) {
|
||||
for (i = 0x00; i <= 0x07; i++) {
|
||||
mapper_write_light(i, lights & (1 << i) ? 255 : 0);
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ void ddr_io_set_lights_extio(uint32_t lights)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0x00; i <= 0x07; i++) {
|
||||
for (i = 0x0E; i <= 0x1E; i++) {
|
||||
mapper_write_light(i, lights & (1 << i) ? 255 : 0);
|
||||
}
|
||||
}
|
||||
@ -52,7 +52,7 @@ void ddr_io_set_lights_p3io(uint32_t lights)
|
||||
{
|
||||
uint8_t i;
|
||||
|
||||
for (i = 0x0E; i <= 0x1E; i++) {
|
||||
for (i = 0x00; i <= 0x07; i++) {
|
||||
mapper_write_light(i, lights & (1 << i) ? 255 : 0);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user