lib/keyboard-parser.js
function parseErrorState(packet, state) {
  let states = 0;

  state.forEach((s) => {
    if (s === 1) {
      states += 1;
    }
  });

  if (states >= 6) {
    packet.errorStatus = true; // eslint-disable-line no-param-reassign
  }
}
function parseErrorState(packet, state) {
  let states = 0;

  state.forEach((s) => {
    if (s === 1) {
      states += 1;
    }
  });

  if (states >= 6) {
    packet.errorStatus = true; // eslint-disable-line no-param-reassign
  }
}
function parseErrorState ( packet , state ) { let states = 0 ; state . forEach ( ( s ) => { if ( s === 1 ) { states += 1 ; } } ) ; if ( states >= 6 ) { packet . errorStatus = true ; // eslint-disable-line no-param-reassign } }
Detect keyboard rollover error
This occurs when the user has pressed too many keys for the
particular device to handle
Detect keyboard rollover error This occurs when the user has pressed too many keys for the particular device to handle