Skip to content

Commit

Permalink
Posible fix for DISC AUTO command (sometimes disc is incorrectly dete…
Browse files Browse the repository at this point in the history
…cted as CD 8cm media)
  • Loading branch information
AKuHAK committed Aug 31, 2024
1 parent c2423f1 commit 2290c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/mecha-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,8 +1194,9 @@ static int MechaTestDiscControl(short int argc, char *argv[])
}
else if (!pstricmp(argv[1], "AUTO"))
{
MechaCommandAdd(MECHA_CMD_SLED_POS_HOME, NULL, id++, 0, 3000, "SLED HOME");
MechaCommandAdd(MECHA_CMD_DISC_MODE_CD_12, NULL, id++, MECHA_CMD_TAG_MECHA_SET_DISC_TYPE, 1000, "DISC MODE CD 12cm");
MechaCommandAdd(MECHA_CMD_DISC_DETECT, NULL, id++, MECHA_CMD_TAG_MECHA_DISC_DETECT, 3000, "DISC DETECT");
MechaCommandAdd(MECHA_CMD_DISC_MODE_CD_8, NULL, id++, MECHA_CMD_TAG_MECHA_SET_DISC_TYPE, 1000, "DISC MODE CD 8cm");
if (MechaCommandExecuteList(&MechaAdjTxHandler, &MechaAdjRxHandler) != 0)
PlatShowMessage("Failed to execute.\n");
}
Expand Down
1 change: 1 addition & 0 deletions base/mecha.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ enum RX_ERROR
#define MECHA_CMD_DISC_MODE_DVDSL_12 0xc14
#define MECHA_CMD_DISC_MODE_DVDDL_12 0xc15
#define MECHA_CMD_DISC_DETECT 0xc16
#define MECHA_CMD_DISC_CUR_MODE 0xc17 // will return current working mode: either set by c10-c15 command (will return 010-015), or set by c16 (will return current disc mode)
#define MECHA_CMD_FOCUS_UPDOWN 0xc22
#define MECHA_CMD_FOCUS_AUTO_START 0xc23
#define MECHA_CMD_FOCUS_AUTO_STOP 0xc24
Expand Down

0 comments on commit 2290c79

Please sign in to comment.