Skip to content

Commit 4359ea9

Browse files
committed
Enforce channel range via schema
1 parent b146a10 commit 4359ea9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/webconfig/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@
689689
"edt_dev_spec_devices_discovery_inprogress": "Discovery in progress",
690690
"edt_dev_spec_dithering_title": "Dithering",
691691
"edt_dev_spec_dmaNumber_title": "DMA channel",
692-
"edt_dev_spec_dmx_max_title": "DMX maximal number of channels",
692+
"edt_dev_spec_dmx_max_title": "DMX maximum channels supported",
693693
"edt_dev_spec_fullBrightnessAtStart_title": "Full brightness at start",
694694
"edt_dev_spec_gamma_title": "Gamma",
695695
"edt_dev_spec_globalBrightnessControlMaxLevel_title": "Max Current Level",

libsrc/leddevice/schemas/schema-e131.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"dmx-max": {
2626
"type": "integer",
2727
"title": "edt_dev_spec_dmx_max_title",
28+
"minimum": 1,
29+
"maximum": 512,
2830
"default": 512,
31+
"access": "advanced",
2932
"propertyOrder": 4
3033
},
3134
"latchTime": {

0 commit comments

Comments
 (0)