From df629e9d288b43bc3c590b4cf2017ed8f1d7b737 Mon Sep 17 00:00:00 2001 From: Raphael Assenat Date: Mon, 26 Oct 2015 23:34:18 -0400 Subject: [PATCH] Reduce memory waste --- usbpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbpad.c b/usbpad.c index 6b6f5a9..5b7a61f 100644 --- a/usbpad.c +++ b/usbpad.c @@ -44,8 +44,8 @@ static unsigned char _FFB_effect_index; #define LOOP_MAX 0xFFFF static unsigned int _loop_count; -static unsigned char gamepad_report0[32]; -static unsigned char hid_report_data[32]; +static unsigned char gamepad_report0[REPORT_SIZE]; +static unsigned char hid_report_data[8]; // Used for force feedback void usbpad_init() {