getNextCommandId method

int getNextCommandId()

Implementation

int getNextCommandId() {
  _commandId++;
  if (_commandId >= _maxCommandId) {
    _commandId = 1;
  }
  return _commandId;
}