Skip to content
Permalink
Browse files

code comments

  • Loading branch information...
silverailscolo committed Jun 18, 2019
1 parent b5ab81e commit 32d5d90e9bb415adf33faa5419a9c904f5db7634
@@ -212,7 +212,6 @@ public void configureBaudNumber(String indexString) {

@Override
public void configureBaudIndex(int index) {
int baud = 0; // represents "(none)"
if ((validBaudNumbers() != null) && (validBaudNumbers().length > 0)) {
for (int i = 0; i < validBaudNumbers().length; i++) {
if (validBaudRates()[i].equals(mBaudRate)) {
@@ -221,7 +220,7 @@ public void configureBaudIndex(int index) {
}
}
} else {
log.debug("no baud rates in array"); // expected for simulators extending serialPortAdapter
log.debug("no baud rates in array"); // expected for simulators extending serialPortAdapter, mBaudRate already null
}
}

@@ -164,9 +164,6 @@ public boolean status() {
return Arrays.copyOf(validSpeeds, validSpeeds.length);
}

/**
* {@inheritDoc}
*/
public int[] validBaudValues() {
return Arrays.copyOf(validSpeedValues, validSpeedValues.length);
}
@@ -58,9 +58,6 @@ public String openPort(String portName, String appName) {
return null;
}

/**
* {@inheritDoc}
*/
public String[] validBaudRates() {
log.error("Unexpected call to validBaudRates");
return null;
@@ -153,13 +153,15 @@ public boolean status() {
/**
* {@inheritDoc}
*/
@Override
public String[] validBaudRates() {
return Arrays.copyOf(validSpeeds, validSpeeds.length);
}

/**
* {@inheritDoc}
*/
@Override
public int[] validBaudNumbers() {
return Arrays.copyOf(validSpeedValues, validSpeedValues.length);
}

0 comments on commit 32d5d90

Please sign in to comment.
You can’t perform that action at this time.