Skip to content

Commit c137b84

Browse files
committed
Removed duplicate lines
1 parent b46fae4 commit c137b84

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#define KNOB_ENC_PIN_2 5 // Rotary encoder input pin 2
5252
#define KNOB_BUTTON_PIN 6 // Rotary encoder button pin
5353
#define FADE_DELAY 10 // Delay in ms for each percentage fade up/down (10ms = 1s full-range dim)
54+
#define SEND_THROTTLE_DELAY 400 // Number of milliseconds before sending after user stops turning knob
5455
#define SN "DimmableLED /w button"
5556
#define SV "1.2"
5657

@@ -62,11 +63,6 @@
6263
#define LIGHT_OFF 0
6364
#define LIGHT_ON 1
6465

65-
#define SEND_THROTTLE_DELAY 400 // Number of milliseconds before sending after user stops turning knob
66-
67-
#define SN "Dimmable /w Button"
68-
#define SV "1.0"
69-
7066
int dimValue;
7167
int fadeTo;
7268
int fadeDelta;
@@ -98,7 +94,6 @@ void setup()
9894
gw.begin(incomingMessage, AUTO, false);
9995

10096
// Send the Sketch Version Information to the Gateway
101-
gw.sendSketchInfo(SN, SV);
10297
gw.present(CHILD_ID_LIGHT, S_DIMMER);
10398
gw.sendSketchInfo(SN, SV);
10499

0 commit comments

Comments
 (0)