From 1a362c531052956733eb97463845f994a9e64cbf Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Thu, 16 May 2013 19:29:59 +0200 Subject: [PATCH] Shift one so it the same as setLedOn etc. --- PS3BT.cpp | 2 +- PS3USB.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PS3BT.cpp b/PS3BT.cpp index ed2c98c9..a1ba45cb 100644 --- a/PS3BT.cpp +++ b/PS3BT.cpp @@ -597,7 +597,7 @@ void PS3BT::setRumbleOn(uint8_t rightDuration, uint8_t rightPower, uint8_t leftD } void PS3BT::setLedRaw(uint8_t value) { - HIDBuffer[11] = value; + HIDBuffer[11] = value << 1; HID_Command(HIDBuffer, HID_BUFFERSIZE); } void PS3BT::setLedOff(LED a) { diff --git a/PS3USB.cpp b/PS3USB.cpp index a14c14c3..ce7f22bf 100644 --- a/PS3USB.cpp +++ b/PS3USB.cpp @@ -445,7 +445,7 @@ void PS3USB::setRumbleOn(uint8_t rightDuration, uint8_t rightPower, uint8_t left } void PS3USB::setLedRaw(uint8_t value) { - writeBuf[9] = value; + writeBuf[9] = value << 1; PS3_Command(writeBuf, PS3_REPORT_BUFFER_SIZE); } void PS3USB::setLedOff(LED a) {