Skip to content

Commit

Permalink
[-] Fixed error with Open method
Browse files Browse the repository at this point in the history
  [-] Fixed error with command 0xFF67
  • Loading branch information
VitalyKravtsov2016 committed Aug 16, 2022
1 parent ae31d38 commit 70618f4
Show file tree
Hide file tree
Showing 6 changed files with 433 additions and 422 deletions.
8 changes: 8 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
Company : SHTRIH-M www.shtrih-m.ru (495) 787-6090
Url : https://github.com/shtrih-m/javapos_shtrih

********************************************************************************

16.08.2022
deviceServiceVersion = 1013675

[-] Fixed error with Open method
[-] Fixed error with command 0xFF67

********************************************************************************

10.08.2022
Expand Down
12 changes: 9 additions & 3 deletions Source/Core/src/com/shtrih/fiscalprinter/command/FSBindMC.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,15 @@ public final void decode(CommandInputStream in) throws Exception {
int paramLen = in.readByte();
if (paramLen > 0)
{
serverErrorCode = in.readByte();
serverCheckStatus = in.readByte();
serverTLVData = in.readBytesToEnd();
if ((paramLen > 0)&&(in.size() > 7)){
serverErrorCode = in.readByte();
}
if ((paramLen > 1)&&(in.size() > 8)){
serverCheckStatus = in.readByte();
}
if ((paramLen > 2)&&(in.size() > 9)){
serverTLVData = in.readBytesToEnd();
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ private void initializeData() {

public SMFiscalPrinter getPrinter() throws Exception
{
checkEnabled();
if (printer == null) {
throw new Exception("Printer is not initialized");
}
Expand Down
Loading

0 comments on commit 70618f4

Please sign in to comment.