From 87ac0507d909338cde28630b8d69311ad2d746a7 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 2 Jul 2017 10:04:43 +0100 Subject: [PATCH] and finally fix the gpio labels --- nodes/core/hardware/36-rpi-gpio.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes/core/hardware/36-rpi-gpio.html b/nodes/core/hardware/36-rpi-gpio.html index bb757bafc..56a00fd19 100644 --- a/nodes/core/hardware/36-rpi-gpio.html +++ b/nodes/core/hardware/36-rpi-gpio.html @@ -207,7 +207,7 @@ var suf = ""; if (this.intype === "up") { suf = "โ†‘ "} if (this.intype === "down") { suf = "โ†“ "} - return this.name || "PIN: "+suf+bcm2pin[this.pin] ; + return this.name || "PIN: "+suf+this.pin ; }, labelStyle: function() { return this.name?"node_label_italic":""; @@ -469,12 +469,12 @@ }, align: "right", label: function() { - if (this.out === "pwm") { return this.name || "PWM: "+bcm2pin[this.pin]; } - else if (this.out === "ser") { return this.name || "Servo: "+bcm2pin[this.pin]; } + if (this.out === "pwm") { return this.name || "PWM: "+this.pin; } + else if (this.out === "ser") { return this.name || "Servo: "+this.pin; } else { var suf = ""; if (this.set == true) { suf = (this.level === "1") ? " ยน" : " โ‚€"; } - return this.name||"PIN: "+ bcm2pin[this.pin] + suf ; + return this.name||"PIN: "+ this.pin + suf ; } }, labelStyle: function() {