Skip to content

Commit d7f49d7

Browse files
committed
bumped version
1 parent 389ce2d commit d7f49d7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Communication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void Communication::sendAdmin() {
147147
admin = 0;
148148
break;
149149
case VERSION:
150-
Serial.print(F("V,1.18.0\r\n"));
150+
Serial.print(F("V,1.19.0\r\n"));
151151
admin = 0;
152152
break;
153153
case RESET:

Config.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Config {
5858
// 2 ignore when not in use option
5959
// 3
6060
bool disableAccelOnPlungerMove = true;
61-
bool enablePlungerQuickRelease = true;
61+
unsigned char enablePlungerQuickRelease = true;
6262
bool disablePlungerWhenNotInUse = true;
6363
bool disableButtonPressWhenKeyboardEnabled = true;
6464
bool enablePlunger = true;
@@ -67,7 +67,6 @@ class Config {
6767
bool lightShowAttractEnabled = true;
6868
unsigned char lightShowTime = 10;
6969
bool reverseButtonOutputPolarity = true;
70-
unsigned char plungerDelayTime = 100;
7170

7271

7372

Plunger.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,13 @@ void Plunger::plungerRead() {
7676
config.lastButtonState[config.plungerLaunchButton] = buttonState;
7777
}
7878
if (config.plungerButtonPush >= 2 && buttonState2 == 0 && sensorValue <= config.plungerMin + 10) {
79+
// Serial.print('sending button push');
80+
// Serial.print(F("\r\n"));
7981
buttonState2 = buttons.sendButtonPush(config.plungerLaunchButton, 1);
8082
config.lastButtonState[config.plungerLaunchButton] = buttonState2;
8183
} else if (config.plungerButtonPush >= 2 && buttonState2 == 1 && sensorValue > config.plungerMin + 10) {
84+
// Serial.print('unsending button push');
85+
// Serial.print(F("\r\n"));
8286
buttonState2 = buttons.sendButtonPush(config.plungerLaunchButton, 0);
8387
config.lastButtonState[config.plungerLaunchButton] = buttonState2;
8488
}
@@ -175,7 +179,7 @@ signed char Plunger::getDelayedPlungerValue(signed char sensorValue, unsigned lo
175179
unsigned short accumulatedTime = 0;
176180
int index = plungerDataCounter == 0 ? 34 : plungerDataCounter - 1;
177181

178-
while (accumulatedTime < config.plungerDelayTime && index != plungerDataCounter) {
182+
while (accumulatedTime < config.enablePlungerQuickRelease && index != plungerDataCounter) {
179183
accumulatedTime += plungerDataTime[index];
180184
index = (index - 1 + 35) % 35;
181185
}

0 commit comments

Comments
 (0)