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 authored and GitHub committed 2025-02-04 02:22:01 +00:00
commit b51ca82032
1 file changed
+1 -1
+1 -1
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;