Skip to content

Commit ecbfe5e

Browse files
author
Jonas Schmid
committed
display the 'dev. job' job to the rasperyPiLamp
1 parent da001d5 commit ecbfe5e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

jenkinsLamp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ JenkinsLamp.prototype.work = function() {
126126

127127
JenkinsLamp.prototype.displayLamps = function(lampList) {
128128
for (lamp of lampList) {
129-
if (lamp.id === 'all Jobs') {
129+
if (lamp.id === 'dev. job') {
130130

131131
lamp.red === LampState.ON ? this.Lamp.enableRed() : this.Lamp.disableRed();
132132
lamp.orange === LampState.ON ? this.Lamp.enableOrange() : this.Lamp.disableOrange();

pcLamp.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,18 @@ Lamp.prototype.shutdown = function() {
3939
};
4040

4141
Lamp.prototype.enableRed = function() {
42-
//enableLed(this.ledRed, this.intervalRed);
42+
// console.log('>>> enableRed');
43+
// enableLed(this.ledRed, this.intervalRed);
4344
}
4445

4546
Lamp.prototype.enableOrange = function() {
46-
//enableLed(this.ledOrange, this.intervalOrange);
47+
// console.log('>>> enableOrange');
48+
// enableLed(this.ledOrange, this.intervalOrange);
4749
}
4850

4951
Lamp.prototype.enableGreen = function() {
50-
//enableLed(this.ledGreen, this.intervalGreen);
52+
// console.log('>>> enableGreen');
53+
// enableLed(this.ledGreen, this.intervalGreen);
5154
}
5255

5356
Lamp.prototype.blinkRed = function() {

0 commit comments

Comments
 (0)