Protocol decoding script, more dongle settings

This commit is contained in:
Niellun
2025-05-31 16:42:21 +03:00
parent 6f6e127095
commit a96187eb31
4 changed files with 162 additions and 1 deletions
+9
View File
@@ -171,6 +171,15 @@ void Protocol::onDevice(bool connected)
sendFile("/etc/box_name", "CarPlay");
if (Settings::autoconnect)
sendInt(CMD_CONTROL, 1002);
sendInt(CMD_CONTROL, Settings::bluetoothAudio ? 22 : 23);
sendInt(CMD_CONTROL, Settings::wifi5 ? 25 : 24);
int mic = 7;
if (Settings::micType == 2)
mic = 15;
if (Settings::micType == 3)
mic = 21;
sendInt(CMD_CONTROL, mic);
if (Settings::encryption)
sendEncryption();
}