-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[+] Added log messages for directIO commands to write TLV data
- Loading branch information
Vitaly Kravtsov
committed
Jan 28, 2022
1 parent
6150ec7
commit c23be57
Showing
12 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 7 additions & 1 deletion
8
Source/Core/src/com/shtrih/jpos/fiscalprinter/directIO/DIOFSWriteOperationTLV.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
package com.shtrih.jpos.fiscalprinter.directIO; | ||
|
||
import com.shtrih.jpos.fiscalprinter.FiscalPrinterImpl; | ||
import com.shtrih.util.CompositeLogger; | ||
import com.shtrih.util.Hex; | ||
|
||
public class DIOFSWriteOperationTLV extends DIOItem { | ||
|
||
private static CompositeLogger logger = CompositeLogger.getLogger(DIOFSWriteOperationTLV.class); | ||
|
||
public DIOFSWriteOperationTLV(FiscalPrinterImpl service) { | ||
super(service); | ||
} | ||
|
||
public void execute(int[] data, Object object) throws Exception | ||
{ | ||
byte[] tlv = (byte[]) object; | ||
boolean print = true; | ||
if (data != null) { | ||
print = (data[0] == 1); | ||
} | ||
service.fsWriteOperationTLV((byte[]) object, print); | ||
logger.debug("directIO(SMFPTR_DIO_FS_WRITE_OPERATION_TLV, " + Hex.toHex(tlv) + ")"); | ||
service.fsWriteOperationTLV(tlv, print); | ||
} | ||
} |
8 changes: 7 additions & 1 deletion
8
Source/Core/src/com/shtrih/jpos/fiscalprinter/directIO/DIOFSWriteTLV.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
package com.shtrih.jpos.fiscalprinter.directIO; | ||
|
||
import com.shtrih.jpos.fiscalprinter.FiscalPrinterImpl; | ||
import com.shtrih.util.CompositeLogger; | ||
import com.shtrih.util.Hex; | ||
|
||
public class DIOFSWriteTLV extends DIOItem { | ||
|
||
private static CompositeLogger logger = CompositeLogger.getLogger(DIOFSWriteTLV.class); | ||
|
||
public DIOFSWriteTLV(FiscalPrinterImpl service) { | ||
super(service); | ||
} | ||
|
||
public void execute(int[] data, Object object) throws Exception { | ||
byte[] tlv = (byte[])object; | ||
boolean print = true; | ||
if (data != null) { | ||
print = (data[0] == 1); | ||
} | ||
service.fsWriteTLV((byte[]) object, print); | ||
logger.debug("directIO(SMFPTR_DIO_FS_WRITE_TLV, " + Hex.toHex(tlv) + ")"); | ||
service.fsWriteTLV(tlv, print); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Source/FiscalPrinterService/src/com/shtrih/util/ServiceVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.shtrih.util; | ||
|
||
public class ServiceVersion { | ||
public static final String VERSION = "638"; | ||
public static final String VERSION = "639"; | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters