From a4453c563cedb1c57dd10d189aa792b8e84d3feb Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 21 Feb 2019 13:24:07 -0500 Subject: Use endpoint number defines for ep allocation --- cores/arduino/USBCore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cores/arduino') diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index f2a2365..aa52243 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -354,8 +354,8 @@ bool InitEPSize(const u8 index, const u8 type, const u8 nbanks, const u8 banksiz static void InitEndpoints() { - InitEPSize(1, EP_TYPE_INTERRUPT_IN, 1, 32); // Control Data Send - InitEPSize(2, EP_TYPE_INTERRUPT_OUT, 1, 32); // Control Data Receive + InitEPSize(XINPUT_TX_ENDPOINT, EP_TYPE_INTERRUPT_IN, 1, 32); // Control Data Send + InitEPSize(XINPUT_RX_ENDPOINT, EP_TYPE_INTERRUPT_OUT, 1, 32); // Control Data Receive InitEPSize(5, EP_TYPE_INTERRUPT_IN, 1, 32); // Expansion Interface NACK (avoid config reset) UERST = 0x7E; // Reset endpoints -- cgit v1.2.3-18-g5258