Skip to content

Commit

Permalink
Fix ps3 connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
isage committed May 14, 2024
1 parent a0c8a78 commit facd387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion module/include/vivid-user.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C"
{
#endif

#define VIVID_MODULE_API 2
#define VIVID_MODULE_API 3

void vividStart(void);
void vividStop(void);
Expand Down
6 changes: 3 additions & 3 deletions module/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ static int sendHid01Report(uint8_t report_id)

static int sendHidF2Report(uint8_t report_id) // set operational
{
static uint8_t f2_reply[17] __attribute__((aligned(64)))
static uint8_t f2_reply[18] __attribute__((aligned(64)))
= {0xf2, // report num
0xff, 0xff, 0x00,
0x00, 0x06, 0xf5, 0xd7, 0x8b, 0x5d, // model?
0x00,
0x03, 0x50, 0x81, 0xd8, 0x01, 0x8b}; // device mac
0x03, 0x50, 0x81, 0xd8, 0x01, 0x8b, 0x00}; // device mac

f2_reply[11] = g_my_mac[0];
f2_reply[12] = g_my_mac[1];
Expand All @@ -142,7 +142,7 @@ static int sendHidF2Report(uint8_t report_id) // set operational

static SceUdcdDeviceRequest req = {.endpoint = &endpoints[0],
.data = f2_reply,
.size = 17,
.size = 18,
.isControlRequest = 0,
.onComplete = NULL,
.transmitted = 0,
Expand Down

0 comments on commit facd387

Please sign in to comment.