From 7646be49cbd3ad34c0be794ab6da033eee8964bf Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 14 May 2017 19:02:40 +0200 Subject: [PATCH 1/5] Version 0.2.4 --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 4a16420..3ad6241 100644 --- a/makefile +++ b/makefile @@ -18,7 +18,7 @@ includedir?=$(prefix)/include PROGN=g810-led MAJOR=0 MINOR=2 -MICRO=3 +MICRO=4 CFLAGS+=-DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\" APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h From d6d976322e074e470059eed6dce7ff53dcb11709 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Fri, 19 May 2017 20:37:49 +0200 Subject: [PATCH 2/5] Bug Solution 1 --- src/classes/Keyboard.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/classes/Keyboard.cpp b/src/classes/Keyboard.cpp index c6ff8a5..472e45a 100644 --- a/src/classes/Keyboard.cpp +++ b/src/classes/Keyboard.cpp @@ -781,20 +781,23 @@ bool LedKeyboard::setNativeEffect(NativeEffect effect, NativeEffectPart part, ui bool LedKeyboard::sendDataInternal(byte_buffer_t &data) { - if (! m_isOpen) return false; - if (data.size() > 0) { #if defined(hidapi) + if (! open()) return false; data.insert(data.begin(), 0x00); if (hid_write(m_hidHandle, const_cast(data.data()), data.size()) < 0) { std::cout<<"Error: Can not write to hidraw, try with the libusb version"<(data2.data()), data2.size(), 1); + */ return true; #elif defined(libusb) + if (! m_isOpen) return false; if (data.size() > 20) { if(libusb_control_transfer(m_hidHandle, 0x21, 0x09, 0x0212, 1, const_cast(data.data()), data.size(), 2000) < 0) From a1631f15c717ed6a911a36c8d354d0b23a7863d2 Mon Sep 17 00:00:00 2001 From: Krutonium Date: Sat, 20 May 2017 18:21:31 -0400 Subject: [PATCH 3/5] Create colors --- sample_profiles/colors | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sample_profiles/colors diff --git a/sample_profiles/colors b/sample_profiles/colors new file mode 100644 index 0000000..5f0f39f --- /dev/null +++ b/sample_profiles/colors @@ -0,0 +1,28 @@ +# Sample profile using Groups of Keys and Single Characters. + +g logo 000096 # Blue +g indicators ffffff # White +g multimedia 009600 # Green +g fkeys ff7700 # Orange +g modifiers ff7700 # Orange +g arrows 0000ff # Red +g numeric 00ff00 # Green +g functions ffffff # White +g keys ff00ff # Purple +g gkeys ffffff # White +k tilde ff0000 # Red +k W 0000ff # Blue { +k A 0000ff +k S 0000ff +k D 0000ff # } +k 1 ff0000 # Red { +k 2 ff0000 +k 3 ff0000 +k 4 ff0000 +k 5 ff0000 +k 6 ff0000 +k 7 ff0000 +k 8 ff0000 +k 9 ff0000 +k 0 ff0000 # } +c # Commit changes From f7edfe31bf8a6afb6a15efca9aaa649e3972fb96 Mon Sep 17 00:00:00 2001 From: Krutonium Date: Sat, 20 May 2017 18:26:23 -0400 Subject: [PATCH 4/5] Fix Bad Character on fkeys as noticed in #85 --- sample_profiles/colors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample_profiles/colors b/sample_profiles/colors index 5f0f39f..d87c950 100644 --- a/sample_profiles/colors +++ b/sample_profiles/colors @@ -3,7 +3,7 @@ g logo 000096 # Blue g indicators ffffff # White g multimedia 009600 # Green -g fkeys ff7700 # Orange +g fkeys ff7700 # Orange g modifiers ff7700 # Orange g arrows 0000ff # Red g numeric 00ff00 # Green From 99447196561c5e083e7bd1f2fda69d8cebdab4fd Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 21 May 2017 00:37:50 +0200 Subject: [PATCH 5/5] Version 0.2.5 --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 3ad6241..56738fd 100644 --- a/makefile +++ b/makefile @@ -18,7 +18,7 @@ includedir?=$(prefix)/include PROGN=g810-led MAJOR=0 MINOR=2 -MICRO=4 +MICRO=5 CFLAGS+=-DVERSION=\"$(MAJOR).$(MINOR).$(MICRO)\" APPSRCS=src/main.cpp src/helpers/*.cpp src/helpers/*.h