Merge pull request #13335 from jordan-woyak/wm-speaker-constant

WiimoteEmu: Use a named constant instead of a magic number for speaker data writes.
This commit is contained in:
Tilka 2025-02-04 02:22:01 +00:00 committed by GitHub
commit b51ca82032
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ int SpeakerLogic::BusWrite(u8 slave_addr, u8 addr, int count, const u8* data_in)
if (I2C_ADDR != slave_addr)
return 0;
if (0x00 == addr)
if (addr == SPEAKER_DATA_OFFSET)
{
SpeakerData(data_in, count, m_speaker_pan_setting.GetValue() / 100);
return count;