fix reference to timer2.enabled

This commit is contained in:
dbalsom 2024-06-30 08:42:03 -04:00 committed by Fabian Greffrath
parent af695877f8
commit c0d3ae55bf

View File

@ -254,7 +254,7 @@ static void WriteRegister(unsigned int reg_num, unsigned int value)
if ((value & 0x20) == 0) if ((value & 0x20) == 0)
{ {
timer1.enabled = (value & 0x02) != 0; timer2.enabled = (value & 0x02) != 0;
OPLTimer_CalculateEndTime(&timer2); OPLTimer_CalculateEndTime(&timer2);
} }
} }