mikemyl / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Missing device name info in webiopi.js for PiFaceDigital #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The webiopi.js code omits the device name info. This results in identical 
DeviceMonitor entries if multiple PiFaceDigital devices are configured.

Changing this

PiFaceDigital.prototype.toString = function() {
        return "PiFaceDigital";
}

to 

PiFaceDigital.prototype.toString = function() {
        return this.name + ": PiFaceDigital";
}

corrects this problem.

Original issue reported on code.google.com by andreas....@googlemail.com on 28 Aug 2014 at 10:32