Only allow channel index 0 to be PRIMARY
This commit is contained in:
1 parent
921db10d91
commit
3b018b0c70
1 file changed
+2
-1
@@ -111,10 +111,11 @@ export const Channel = ({ channel }: SettingsPanelProps): JSX.Element => {
|
||||
type: "select",
|
||||
name: "role",
|
||||
label: "Role",
|
||||
disabled: channel.index == 0,
|
||||
description:
|
||||
"Device telemetry is sent over PRIMARY. Only one PRIMARY allowed",
|
||||
properties: {
|
||||
enumValue: Protobuf.Channel.Channel_Role,
|
||||
enumValue: channel.index === 0 ? {"PRIMARY":1} : {"DISABLED":0, "SECONDARY":2},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user