Fix missing log output for pin 0 re issue #338

Signed-off-by: Morten H. Frederiksen <morten@mfd-consult.dk>
This commit is contained in:
Morten H. Frederiksen 2016-05-21 23:01:04 +02:00
parent 44497e932c
commit d72bab16d5
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ Robot.prototype.startDevice = function(device, callback) {
var log = this.log;
var str = "Starting device '" + device.name + "'";
if (device.pin) {
if (device.pin || device.pin === 0) {
str += " on pin " + device.pin;
}