[Minor] logger changes in DataLogicScannerConnection
This commit is contained in:
parent
7991f30fbd
commit
f5a488fc38
|
@ -97,7 +97,6 @@ public class DataLogicScannerConnection extends SimplePlcConnection {
|
||||||
private void internalDisconnect() {
|
private void internalDisconnect() {
|
||||||
this.read = false;
|
this.read = false;
|
||||||
if (this.readTask != null) {
|
if (this.readTask != null) {
|
||||||
logger.warn("Cancelling read task...");
|
|
||||||
this.readTask.cancel(true);
|
this.readTask.cancel(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,11 +121,13 @@ public class DataLogicScannerConnection extends SimplePlcConnection {
|
||||||
private void sendStartTrigger() throws IOException {
|
private void sendStartTrigger() throws IOException {
|
||||||
this.triggered = true;
|
this.triggered = true;
|
||||||
this.socket.getOutputStream().write('T');
|
this.socket.getOutputStream().write('T');
|
||||||
|
logger.info("Triggered DataLogicScanner");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendStopTrigger() throws IOException {
|
private void sendStopTrigger() throws IOException {
|
||||||
this.triggered = false;
|
this.triggered = false;
|
||||||
this.socket.getOutputStream().write('S');
|
this.socket.getOutputStream().write('S');
|
||||||
|
logger.info("Stopped DataLogicScanner");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue