This commit is contained in:
Milos Kozak 2016-07-18 14:17:24 +02:00
parent fdbfa16e40
commit fe72300790
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ public class SerialIOThread extends Thread {
int command = (extractedBuff[5] & 0xFF) | ((extractedBuff[4] << 8) & 0xFF00);
MessageBase message;
if (processedMessage != null & processedMessage.getCommand() == command) {
if (processedMessage != null && processedMessage.getCommand() == command) {
message = processedMessage;
} else {
// get it from hash table

View file

@ -241,9 +241,9 @@ public class ExecutionService extends Service {
mSerialIOThread.sendMessage(exStatusMsg);
mSerialIOThread.sendMessage(statusMsg);
mSerialIOThread.sendMessage(statusBasicMsg);
mSerialIOThread.sendMessage(new MsgSettingShippingInfo()); // TODO: show it somewhere
if (danaRPump.isNewPump) {
mSerialIOThread.sendMessage(new MsgSettingShippingInfo());
mSerialIOThread.sendMessage(new MsgCheckValue());
}