ibmpc: Remove unused error code

This commit is contained in:
tmk 2023-06-10 12:19:50 +09:00
parent 44eb0da1a5
commit b2edf39094
2 changed files with 1 additions and 3 deletions

View file

@ -191,9 +191,8 @@ uint8_t IBMPCConverter::process_interface(void)
* IBMPC_ERR_TIMEOUT Reinit * IBMPC_ERR_TIMEOUT Reinit
* IBMPC_ERR_FULL Ignore * IBMPC_ERR_FULL Ignore
* IBMPC_ERR_ILLEGAL Reinit * IBMPC_ERR_ILLEGAL Reinit
* IBMPC_ERR_FF Ignore(not used)
*/ */
// when recv error, neither send error nor buffer full // send error and buffer full are ignored TODO: refactor
if (!(ibmpc.error & (IBMPC_ERR_SEND | IBMPC_ERR_FULL))) { if (!(ibmpc.error & (IBMPC_ERR_SEND | IBMPC_ERR_FULL))) {
state = ERROR; state = ERROR;
if (ibmpc.error == IBMPC_ERR_PARITY_AA) { if (ibmpc.error == IBMPC_ERR_PARITY_AA) {

View file

@ -84,7 +84,6 @@ POSSIBILITY OF SUCH DAMAGE.
#define IBMPC_ERR_TIMEOUT 0x20 #define IBMPC_ERR_TIMEOUT 0x20
#define IBMPC_ERR_FULL 0x40 #define IBMPC_ERR_FULL 0x40
#define IBMPC_ERR_ILLEGAL 0x80 #define IBMPC_ERR_ILLEGAL 0x80
#define IBMPC_ERR_FF 0xF0
#define IBMPC_LED_SCROLL_LOCK 0 #define IBMPC_LED_SCROLL_LOCK 0
#define IBMPC_LED_NUM_LOCK 1 #define IBMPC_LED_NUM_LOCK 1