feat: sequences v2, driver frame sync and submodule updates
- Sequences v2, bridges and sim-controller changes from the working tree. - Records the led-driver, led-tool and led-simulator commits above. - Includes dmx-driver/ and graphify-out/. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f8f67823b
commit
50ca46fee6
657 files changed
+15818
-1107
No files matched your search
@@ -301,9 +301,18 @@ function applyTransportVisibility(transport) {
|
||||
if (drvWrap) drvWrap.hidden = !isWifi;
|
||||
}
|
||||
|
||||
function readMaxBrightness(id) {
|
||||
const el = document.getElementById(id);
|
||||
if (!el || el.value === '') return null;
|
||||
const n = parseInt(el.value, 10);
|
||||
return Number.isNaN(n) ? null : Math.max(0, Math.min(255, n));
|
||||
}
|
||||
|
||||
function getDriverConfigPushFields(transport, registryName) {
|
||||
const push = {};
|
||||
if (registryName) push.name = registryName;
|
||||
const mb = readMaxBrightness('edit-device-max-brightness');
|
||||
if (mb != null) push.max_brightness = mb;
|
||||
if (transport === 'wifi') {
|
||||
const nl = document.getElementById('edit-device-wifi-num-leds');
|
||||
const co = document.getElementById('edit-device-wifi-color-order');
|
||||
@@ -358,6 +367,8 @@ function collectDeviceEditPayload() {
|
||||
address,
|
||||
output_brightness,
|
||||
};
|
||||
const maxB = readMaxBrightness('edit-device-max-brightness');
|
||||
if (maxB != null) payload.max_brightness = maxB;
|
||||
if (transport === 'wifi') {
|
||||
const dn = document.getElementById('edit-device-wifi-driver-name');
|
||||
const nl = document.getElementById('edit-device-wifi-num-leds');
|
||||
@@ -652,6 +663,17 @@ function openEditDeviceModal(devId, dev) {
|
||||
obr.value = String(bv);
|
||||
if (obv) obv.textContent = String(bv);
|
||||
}
|
||||
const mbr = document.getElementById('edit-device-max-brightness');
|
||||
const mbv = document.getElementById('edit-device-max-brightness-value');
|
||||
if (mbr) {
|
||||
let mv = 255;
|
||||
if (dev && dev.max_brightness != null && dev.max_brightness !== '') {
|
||||
const n = parseInt(String(dev.max_brightness), 10);
|
||||
if (!Number.isNaN(n)) mv = Math.max(0, Math.min(255, n));
|
||||
}
|
||||
mbr.value = String(mv);
|
||||
if (mbv) mbv.textContent = String(mv);
|
||||
}
|
||||
void renderEditDeviceGroups(devId);
|
||||
modal.classList.add('active');
|
||||
}
|
||||
@@ -812,6 +834,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
}
|
||||
|
||||
const devMaxBr = document.getElementById('edit-device-max-brightness');
|
||||
const devMaxBrVal = document.getElementById('edit-device-max-brightness-value');
|
||||
if (devMaxBr && devMaxBrVal) {
|
||||
devMaxBr.addEventListener('input', () => {
|
||||
devMaxBrVal.textContent = devMaxBr.value;
|
||||
});
|
||||
}
|
||||
|
||||
const transportEdit = document.getElementById('edit-device-transport');
|
||||
if (transportEdit) {
|
||||
transportEdit.addEventListener('change', () => {
|
||||
|
||||
Reference in new issue
Block a user