Skip to content

Commit b8af6ff

Browse files
committed
Fixed syntax errors in previous commit
1 parent 6dc5404 commit b8af6ff

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

hardware/arduino/avr/cores/arduino/HID.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const u8 _hidReportDescriptor[] = {
122122
0x95, 64, // report count RX
123123
0x09, 0x02, // usage
124124
0x91, 0x02, // Output (array)
125-
0xC0 // end collection
125+
0xC0, // end collection
126126
#endif
127127
// *** Here is where the RAW_HID has been converted to a Joystick device
128128
// *** Inspired by helmpcb.com/electronics/usb-joystick
@@ -201,7 +201,7 @@ const u8 _hidReportDescriptor[] = {
201201
0x81, 0x02,// INPUT (Data,Var,Abs)
202202
0xc0,// END_COLLECTION
203203

204-
0xc0// END_COLLECTION
204+
0xc0,// END_COLLECTION
205205

206206
//-----------------------------------------------------------------------------
207207

hardware/arduino/avr/cores/arduino/USBAPI.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,21 @@ extern Keyboard_ Keyboard;
192192

193193
typedef struct JoyState // Pretty self explanitory. Simple state to store all the joystick parameters
194194
{
195-
uint8_txAxis;
196-
uint8_tyAxis;
197-
uint8_tzAxis;
195+
uint8_t xAxis;
196+
uint8_t yAxis;
197+
uint8_t zAxis;
198198

199-
uint8_txRotAxis;
200-
uint8_tyRotAxis;
201-
uint8_tzRotAxis;
199+
uint8_t xRotAxis;
200+
uint8_t yRotAxis;
201+
uint8_t zRotAxis;
202202

203-
uint8_tthrottle;
204-
uint8_trudder;
203+
uint8_t throttle;
204+
uint8_t rudder;
205205

206-
uint8_thatSw1;
207-
uint8_thatSw2;
206+
uint8_t hatSw1;
207+
uint8_t hatSw2;
208208

209-
uint32_tbuttons;// 32 general buttons
209+
uint32_t buttons;// 32 general buttons
210210

211211
} JoyState_t;
212212

0 commit comments

Comments
 (0)