aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/jj40
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-11-15 10:21:53 +1100
committerGitHub <noreply@github.com>2019-11-15 10:21:53 +1100
commit519df78cdbf7211b9e1ac6b961b0e10bb5164914 (patch)
tree767881cdf729173faaa29537d16dd6bdc1f65b55 /keyboards/jj40
parent30473357290747be06e9200a7d9c751738a3b0a1 (diff)
downloadfirmware-519df78cdbf7211b9e1ac6b961b0e10bb5164914.tar.gz
firmware-519df78cdbf7211b9e1ac6b961b0e10bb5164914.tar.bz2
firmware-519df78cdbf7211b9e1ac6b961b0e10bb5164914.zip
Set device version from config.h for V-USB boards (#7316)
Diffstat (limited to 'keyboards/jj40')
-rw-r--r--keyboards/jj40/config.h1
-rw-r--r--keyboards/jj40/usbconfig.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/jj40/config.h b/keyboards/jj40/config.h
index 8efbc7ba2..2310ce87e 100644
--- a/keyboards/jj40/config.h
+++ b/keyboards/jj40/config.h
@@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0x20A0
#define PRODUCT_ID 0x422D
+#define DEVICE_VER 0x0200
// TODO: share these strings with usbconfig.h
// Edit usbconfig.h to change these.
#define MANUFACTURER Kprepublic
diff --git a/keyboards/jj40/usbconfig.h b/keyboards/jj40/usbconfig.h
index d1fb1f517..4599c03dc 100644
--- a/keyboards/jj40/usbconfig.h
+++ b/keyboards/jj40/usbconfig.h
@@ -228,7 +228,7 @@ section at the end of this file).
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand
* the implications!
*/
-#define USB_CFG_DEVICE_VERSION 0x00, 0x02
+#define USB_CFG_DEVICE_VERSION (DEVICE_VER & 0xFF), ((DEVICE_VER >> 8) & 0xFF)
/* Version number of the device: Minor number first, then major number.
*/
#define USB_CFG_VENDOR_NAME 'w', 'i', 'n', 'k', 'e', 'y', 'l', 'e', 's', 's', '.', 'k', 'r'