mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 15:09:00 +01:00
WiimoteEmu: Use a named constant instead of a magic number for speaker
data writes.
This commit is contained in:
parent
ba58e336bc
commit
c857a7dd82
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user