diff options
author | dbroqua <dbroqua@mousur.org> | 2016-12-17 22:28:56 +0100 |
---|---|---|
committer | dbroqua <dbroqua@mousur.org> | 2016-12-17 22:28:56 +0100 |
commit | c3469b8d2175cd5a6f3c922d478222bf3908516e (patch) | |
tree | 98123b52d6ce2938d424339417e2c54864e15260 /tmk_core/protocol | |
parent | df50bee5a88cacbd1f5fab98b26c2068646b61c0 (diff) | |
parent | c9803f78b2409cfaf6a1be0a4b6c1a37778a3f37 (diff) | |
download | firmware-c3469b8d2175cd5a6f3c922d478222bf3908516e.tar.gz firmware-c3469b8d2175cd5a6f3c922d478222bf3908516e.tar.bz2 firmware-c3469b8d2175cd5a6f3c922d478222bf3908516e.zip |
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r-- | tmk_core/protocol/lufa/adafruit_ble.cpp | 2 | ||||
-rw-r--r-- | tmk_core/protocol/lufa/descriptor.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tmk_core/protocol/lufa/adafruit_ble.cpp b/tmk_core/protocol/lufa/adafruit_ble.cpp index 37194e77a..fd6edd42c 100644 --- a/tmk_core/protocol/lufa/adafruit_ble.cpp +++ b/tmk_core/protocol/lufa/adafruit_ble.cpp @@ -86,7 +86,7 @@ struct queue_item { uint16_t consumer; struct __attribute__((packed)) { - uint8_t x, y, scroll, pan; + int8_t x, y, scroll, pan; } mousemove; }; }; diff --git a/tmk_core/protocol/lufa/descriptor.c b/tmk_core/protocol/lufa/descriptor.c index bf47787d2..14d99b50b 100644 --- a/tmk_core/protocol/lufa/descriptor.c +++ b/tmk_core/protocol/lufa/descriptor.c @@ -40,6 +40,9 @@ #include "report.h" #include "descriptor.h" +#ifndef USB_MAX_POWER_CONSUMPTION +#define USB_MAX_POWER_CONSUMPTION 500 +#endif /******************************************************************************* * HID Report Descriptors @@ -294,7 +297,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = .ConfigAttributes = (USB_CONFIG_ATTR_RESERVED | USB_CONFIG_ATTR_REMOTEWAKEUP), - .MaxPowerConsumption = USB_CONFIG_POWER_MA(500) + .MaxPowerConsumption = USB_CONFIG_POWER_MA(USB_MAX_POWER_CONSUMPTION) }, /* |