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
@@ -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);
}
}