Fixed a couple minor items.

git-svn-id: https://svn2.assembla.com/svn/romraider/trunk@354 38686702-15cf-42e4-a595-3071df8bf5ea
This commit is contained in:
Dale Schultz 2011-10-04 03:28:51 +00:00
parent d28f38d53d
commit 1a7807c4d8
3 changed files with 7 additions and 4 deletions

View File

@ -85,7 +85,7 @@ public final class MTSRunner implements MTSEvents, Stoppable {
if (mts.inputCount() > 0) {
while (!stop) {
// wait for newData() event to occur
sleep(60000L);
sleep(100L);
}
}
else {

View File

@ -45,8 +45,11 @@ public final class Lm2MtsPluginMenuAction extends AbstractAction {
null,
getPorts(),
dataSource.getPort());
port = port.substring(0, 1);
if (port != null && port.length() > 0) dataSource.setPort(port);
if (port != null && port.length() > 0) {
port = port.substring(0, 1);
dataSource.setPort(port);
}
}
private String[] getPorts() {

View File

@ -76,7 +76,7 @@ public final class PlxParserImpl implements PlxParser {
case EXPECTING_SECOND_HALF_OF_VALUE:
state = EXPECTING_FIRST_HALF_OF_SENSOR_TYPE;
int rawValue = (partialValue << 6) | b;
LOGGER.info("PLX sensor: " + sensorType + " instance: " + instance + " value: " + rawValue );
LOGGER.trace("PLX sensor: " + sensorType + " instance: " + instance + " value: " + rawValue );
return new PlxResponse(sensorType, instance, rawValue);
}
return null;