Bugfix and GY-33 progress

Bugfix /set_mode?m=2&rgb=000000AA&s=200 will not set color
GY-33 further progress
This commit is contained in:
BPoH_Voodoo
2018-04-12 20:50:11 +02:00
parent f47e52eea5
commit 4d78ddb4a6
5 changed files with 41 additions and 49 deletions
+2 -2
View File
@@ -1269,7 +1269,7 @@ void checkForRequests() {
}
#endif
#ifdef ENABLE_BUTTON2
#ifdef ENABLE_BUTTON_GY33
void shortKeyPress2() {
DBG_OUTPUT_PORT.printf("Short button2 press\n");
if (buttonState == false) {
@@ -1365,7 +1365,7 @@ void checkForRequests() {
if (millis() - keyPrevMillis2 >= keySampleIntervalMs2) {
keyPrevMillis2 = millis();
byte currKeyState2 = digitalRead(BUTTON2);
byte currKeyState2 = digitalRead(BUTTON_GY33);
if ((prevKeyState2 == HIGH) && (currKeyState2 == LOW)) {
// key goes from not pressed to pressed