Skip to content

Commit a02e784

Browse files
committed
Fixed issue with Hat switch
1 parent 1be7dd7 commit a02e784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Joystick.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void Joystick_::setSteering(uint16_t value)
577577
if (_autoSendState) sendState();
578578
}
579579

580-
void Joystick_::setHatSwitch(int8_t hatSwitchIndex, uint16_t value)
580+
void Joystick_::setHatSwitch(int8_t hatSwitchIndex, int16_t value)
581581
{
582582
if (hatSwitchIndex >= _hatSwitchCount) return;
583583

src/Joystick.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class Joystick_
209209
void pressButton(uint8_t button);
210210
void releaseButton(uint8_t button);
211211

212-
void setHatSwitch(int8_t hatSwitch, uint16_t value);
212+
void setHatSwitch(int8_t hatSwitch, int16_t value);
213213

214214
void sendState();
215215
};

0 commit comments

Comments
 (0)