Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

node_lib: rm duplicate workarounds

  • Loading branch information...
commit fbac8e20554a8356f2b3984412a2b70f712ab0e0 1 parent 6bbf1b1
Astro authored October 15, 2011

Showing 1 changed file with 0 additions and 12 deletions. Show diff stats Hide diff stats

  1. 12  node_lib/buzz.js
12  node_lib/buzz.js
@@ -38,10 +38,6 @@ Buzz.prototype = new events.EventEmitter();
38 38
 // - led: the led of the player [0-1]
39 39
 // - brightness the brightness of the led [0-1]
40 40
 Buzz.prototype.set_led = function (player, brightness) {
41  
-    if (brightness)
42  
-	brightness = 0;
43  
-    else
44  
-	brightness = 1;
45 41
     // die Ansteuerung funktioniert, aber bei buzzer B und C sind die
46 42
     // led pins (in der firmware) vertauscht. d.h. keyB hat ledC und
47 43
     // keyC hat ledB.
@@ -52,14 +48,6 @@ Buzz.prototype.set_led = function (player, brightness) {
52 48
     // there is only one in the hardware
53 49
     var led = 1;
54 50
 
55  
-    // TODO: remove me later, i am a quickfix
56  
-    if(player == 2) {
57  
-        player = 1;
58  
-    }
59  
-    if(player == 1) {
60  
-        player = 2;
61  
-    }
62  
-
63 51
     var buf = new Buffer("QL$$$Q");
64 52
 
65 53
     buf[2] = 'A'.charCodeAt(0) + player;

0 notes on commit fbac8e2

Please sign in to comment.
Something went wrong with that request. Please try again.