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();
}
+4 -1
View File
@@ -24,7 +24,10 @@ public:
static inline Setting<bool> autoconnect{"autoconnect", true};
static inline Setting<bool> weakCharge{"weak-charge", true};
static inline Setting<bool> leftDrive{"left-hand-drive", true};
static inline Setting<int> nightMode{"night-mode", 2};
static inline Setting<int> nightMode{"night-mode", 2};
static inline Setting<bool> wifi5{"wifi-5", true};
static inline Setting<bool> bluetoothAudio{"bluetooth-audio", false};
static inline Setting<int> micType{"mic-type", 1};
static inline Setting<int> dpi{"dpi", 0};
// Application configuration section