Skip to content

Commit d0233d9

Browse files
committed
[dogbait] use blue led control subCMD from mechacon factory test CMD
1 parent 75c18b7 commit d0233d9

File tree

1 file changed

+3
-4
lines changed
  • iop/system2x6/dogbait/src

1 file changed

+3
-4
lines changed

iop/system2x6/dogbait/src/main.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@
1212

1313
IRX_ID(MODNAME, MAJOR, MINOR);
1414
char rdata[16];
15-
char wdata[1] = {0x0};
15+
char wdata[1] = {0x42};
1616

1717
//the loop waiting was made to mirror what rom0:DAEMON did
1818
void bait(void*)
1919
{
2020
int x;
2121
printf("DOGBAIT v%d.%d by El_isra\n", MAJOR, MINOR);
2222
do {
23-
wdata[0] = !wdata[0];
2423
#ifdef DEBUG
2524
x =
2625
#endif
2726
//thanks uyjulian for the idea. arcade CDVDMAN has the blue led control export stubbed so directly calling the CMD was the only choice
28-
sceCdApplySCmd(0x1c, wdata, sizeof(wdata), rdata);
29-
DPRINTF("sceCdApplySCmd(0x1c, %x) ret %d\n", wdata[0], x);
27+
sceCdApplySCmd(0x03, wdata, sizeof(wdata), rdata);
28+
DPRINTF("sceCdApplySCmd(0x03, %x) ret %d\n", wdata[0], x);
3029
x = 0x3c;
3130
while (0 < x) {
3231
DelayThread(1000000);

0 commit comments

Comments
 (0)