Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar1jn committed Jul 20, 2023
2 parents d6b0173 + 9823282 commit 5439ef4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Core/Core/IOS/USB/Emulated/Skylander.cpp
Expand Up @@ -681,8 +681,13 @@ int SkylanderUSB::SubmitTransfer(std::unique_ptr<CtrlMessage> cmd)

// The 3rd, 4th and 5th bytes are red, green and blue

// The 6th and 7th bytes form a little-endian short for how long the fade duration should be in milliseconds.
// The 6th and 7th bytes form a little-endian short for how long the fade duration should be
// in milliseconds.
// For example, 500 milliseconds becomes 0xF4, 0x01
// are 0x00, 0x01 and 0x07. Custom commands show that the higher this value the longer the
// duration.

// Empty J response is sent after the fade is completed.
if (cmd->length == 7)
{
control_response = {buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]};
Expand Down

0 comments on commit 5439ef4

Please sign in to comment.