diff --git a/Sony.mm b/Sony.mm index 6b8d0bc..fcacede 100644 --- a/Sony.mm +++ b/Sony.mm @@ -49,7 +49,7 @@ -(void)setCurrentBluetoothListeningMode:(NSString *)listeningMode forAccessory:( // 0x3e 0x0c 0x00 0x00 0x00 0x00 0x07 0x68 0x17 0x01 0x01 0x00 0x00 0x14 0xffffffa8 0x3c // noise canceling // 0x3e 0x0c 0x01 0x00 0x00 0x00 0x07 0x68 0x17 0x01 0x00 0x00 0x00 0x14 0xffffffa8 0x3c // off // 0x3e 0x0c 0x01 0x00 0x00 0x00 0x07 0x68 0x17 0x01 0x01 0x01 0x01 0x14 0xffffffa8 0x3c // transparency - focus on voice - char newCommand[] = {0x0c, pingPong, 0x00, 0x00, 0x00, 0x07, 0x68, 0x17, sendStatus, !isOff, (!isNC && !isOff) || focusOnVoice, focusOnVoice, ncAsmValue}; + char newCommand[] = {0x0c, pingPong, 0x00, 0x00, 0x00, 0x07, 0x68, 0x17, 0x01, !isOff, ncAsmValue >= 1, focusOnVoice, static_cast(ncAsmValue <= 0 ? 1 : ncAsmValue)}; memcpy(command, newCommand, sizeof(newCommand)); commandSize = sizeof(newCommand); }