canonselphy: Improve ES2 error derection some more.

This commit is contained in:
Solomon Peachy 2014-01-29 21:31:26 -05:00
parent 0b1e2dd6e3
commit 7f8fe44269
1 changed files with 8 additions and 3 deletions

View File

@ -62,7 +62,7 @@ static int es1_error_detect(uint8_t *rdbuf)
if (rdbuf[9] == 0x00) {
ERROR("Cover open!\n");
} else {
ERROR("Unknown error %02x\n", rdbuf[9]
ERROR("Unknown error %02x\n", rdbuf[9]);
}
return 1;
} else if (rdbuf[4] == 0x01 && rdbuf[5] == 0xff &&
@ -90,6 +90,11 @@ static int es2_error_detect(uint8_t *rdbuf)
return 1;
}
if (rdbuf[0] == 0x14) {
ERROR("Out of media!\n");
return 1;
}
return 0;
}