mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
0 -> 0x00
This commit is contained in:
parent
f3342aa589
commit
970ca7890e
1 changed files with 3 additions and 3 deletions
|
@ -589,10 +589,10 @@ void PS3BT::setRumbleOff() {
|
|||
}
|
||||
|
||||
void PS3BT::setRumbleOn(Rumble mode) {
|
||||
if ((mode & 0x30) > 0) {
|
||||
uint8_t power[2] = { 0xff, 0 }; // Defaults to RumbleLow
|
||||
if ((mode & 0x30) > 0x00) {
|
||||
uint8_t power[2] = { 0xff, 0x00 }; // Defaults to RumbleLow
|
||||
if (mode == RumbleHigh) {
|
||||
power[0] = 0;
|
||||
power[0] = 0x00;
|
||||
power[1] = 0xff;
|
||||
}
|
||||
setRumbleOn(0xfe, power[0], 0xfe, power[1]);
|
||||
|
|
Loading…
Reference in a new issue