mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-29 06:10:52 +00:00
[Linux] Fix noise controll switches multiple times
This commit is contained in:
@@ -225,6 +225,11 @@ public slots:
|
||||
void setNoiseControlMode(NoiseControlMode mode)
|
||||
{
|
||||
LOG_INFO("Setting noise control mode to: " << mode);
|
||||
if (m_noiseControlMode == mode)
|
||||
{
|
||||
LOG_INFO("Noise control mode is already " << mode);
|
||||
return;
|
||||
}
|
||||
QByteArray packet = AirPodsPackets::NoiseControl::getPacketForMode(mode);
|
||||
writePacketToSocket(packet, "Noise control mode packet written: ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user