Add WM1110 Full Companion over BLE and CH340 UART

This commit is contained in:
mikecarper committed 2026-10-31 21:04:24 -07:00
1 parent a85d282144
commit 60773ceb8d
21 files changed
+738 -39

No files matched your search

+8 -1
View File
@@ -601,6 +601,9 @@
if (!profile || profile.role !== "companion" || profile.mode !== "full") {
return false;
}
// WM1110's computer port is CH340C -> Serial1. Its DFU ZIP does not
// imply native USB or a separate logging CDC, even without metadata.
if (/^wio_wm1110_companion_radio_full$/i.test(profile.target || "")) return false;
const installKinds = Array.isArray(profile.installKinds)
? profile.installKinds
: [];
@@ -1152,7 +1155,11 @@
profile.variant = "mqtt-observer";
}
}
if (typeof controls.dedicatedUsbLogging === "boolean") {
if (/^wio_wm1110_companion_radio_full$/i.test(profile.target || "")) {
// Keep old/foreign controls from overriding this exact wired backend.
// Qualified current controls also publish an explicit source-bound false.
profile.dedicatedUsbLogging = false;
} else if (typeof controls.dedicatedUsbLogging === "boolean") {
profile.dedicatedUsbLogging = controls.dedicatedUsbLogging;
}
const sensorSource = controls.sensorProfileSource;