aboutsummaryrefslogtreecommitdiff
path: root/libraries/HID/HID.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-10-01 12:53:24 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-02 11:59:24 +0200
commit66d3eabe42fa4590b111d3fe8442c0e556acedcd (patch)
tree669b0aee82b3a8c19a242cfa55b2f4666e14c0c3 /libraries/HID/HID.h
parent2e328bae3b5fe55c8cbf7b6c9156a830273abab3 (diff)
[HID] removed HIDDescriptor field
The field is now built on-the-fly on the stack and sent over USB. This change increase Flash usage and decrease SRAM usage: before: 6114 / 241 after: 6152 / 216 (removed HIDDescriptor field) delta: +38 / -25 SRAM is a much more scarse resource and this change free up to about 10% of the "base" usage.
Diffstat (limited to 'libraries/HID/HID.h')
-rw-r--r--libraries/HID/HID.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/libraries/HID/HID.h b/libraries/HID/HID.h
index d31d9c5..2cd0f4a 100644
--- a/libraries/HID/HID.h
+++ b/libraries/HID/HID.h
@@ -84,7 +84,6 @@ protected:
bool setup(USBSetup& setup, uint8_t interfaceNum);
private:
- HIDDescriptor hidInterface;
uint8_t epType[1];
HIDDescriptorListNode* rootNode;