summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authordbroqua <dbroqua@mousur.org>2016-12-17 22:28:56 +0100
committerdbroqua <dbroqua@mousur.org>2016-12-17 22:28:56 +0100
commitc3469b8d2175cd5a6f3c922d478222bf3908516e (patch)
tree98123b52d6ce2938d424339417e2c54864e15260 /tmk_core
parentdf50bee5a88cacbd1f5fab98b26c2068646b61c0 (diff)
parentc9803f78b2409cfaf6a1be0a4b6c1a37778a3f37 (diff)
downloadqmk_firmware-c3469b8d2175cd5a6f3c922d478222bf3908516e.tar.gz
qmk_firmware-c3469b8d2175cd5a6f3c922d478222bf3908516e.zip
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/avr.mk2
-rw-r--r--tmk_core/protocol/lufa/adafruit_ble.cpp2
-rw-r--r--tmk_core/protocol/lufa/descriptor.c5
3 files changed, 6 insertions, 3 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk
index b48173341a..5df539def5 100644
--- a/tmk_core/avr.mk
+++ b/tmk_core/avr.mk
@@ -26,7 +26,7 @@ CFLAGS += -fno-inline-small-functions
CFLAGS += -fno-strict-aliasing
CPPFLAGS += $(COMPILEFLAGS)
-CPPFLAGS += -fno-exceptions
+CPPFLAGS += -fno-exceptions -std=c++11
LDFLAGS +=-Wl,--gc-sections
diff --git a/tmk_core/protocol/lufa/adafruit_ble.cpp b/tmk_core/protocol/lufa/adafruit_ble.cpp
index 37194e77a9..fd6edd42cf 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 bf47787d29..14d99b50bd 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)
},
/*