tucana: Support displaying half duplex, too

This commit is contained in:
Ranlvor 2020-07-16 10:52:53 +02:00
parent 628f9de247
commit dd2af374bd
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -164,7 +164,9 @@ const config: Config = {
"0": "Link Down", "0": "Link Down",
"6": "1000M", "6": "1000M",
"5": "100M", "5": "100M",
"3": "10M" "4": "100M (Half Duplex)",
"3": "10M",
"2": "10M (Half Duplex)"
}) })
}, },
command: { command: {
@ -334,9 +336,8 @@ const config: Config = {
({ ({
"Link Down": hex("#888888"), "Link Down": hex("#888888"),
"1000M": hex("#00ff00"), "1000M": hex("#00ff00"),
"100M": hex("#ff0000"),
"10M": hex("#000000") "10M": hex("#000000")
})[tucanaPower], })[tucanaPower] || hex("#ff0000"),
ui: [ ui: [
{ {
type: "toggle", type: "toggle",