From c137b84b3b02d488fd864956cd54942b87d8e2ce Mon Sep 17 00:00:00 2001 From: Henrik Ekblad Date: Wed, 22 Apr 2015 07:20:42 +0200 Subject: [PATCH] Removed duplicate lines --- .../DimmableLightWithRotaryEncoderButton.ino | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino b/libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino index dd30b81..81fe076 100644 --- a/libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino +++ b/libraries/MySensors/examples/DimmableLightWithRotaryEncoderButton/DimmableLightWithRotaryEncoderButton.ino @@ -51,6 +51,7 @@ #define KNOB_ENC_PIN_2 5 // Rotary encoder input pin 2 #define KNOB_BUTTON_PIN 6 // Rotary encoder button pin #define FADE_DELAY 10 // Delay in ms for each percentage fade up/down (10ms = 1s full-range dim) +#define SEND_THROTTLE_DELAY 400 // Number of milliseconds before sending after user stops turning knob #define SN "DimmableLED /w button" #define SV "1.2" @@ -62,11 +63,6 @@ #define LIGHT_OFF 0 #define LIGHT_ON 1 -#define SEND_THROTTLE_DELAY 400 // Number of milliseconds before sending after user stops turning knob - -#define SN "Dimmable /w Button" -#define SV "1.0" - int dimValue; int fadeTo; int fadeDelta; @@ -98,7 +94,6 @@ void setup() gw.begin(incomingMessage, AUTO, false); // Send the Sketch Version Information to the Gateway - gw.sendSketchInfo(SN, SV); gw.present(CHILD_ID_LIGHT, S_DIMMER); gw.sendSketchInfo(SN, SV);