Skip to content

Commit

Permalink
[-] Fixed error with receipt item adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyKravtsov2016 committed Mar 22, 2022
1 parent 14d3fe4 commit 4c65f57
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 0 additions & 5 deletions Source/Core/src/com/shtrih/fiscalprinter/port/PPPThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import com.shtrih.NativeResource;
import com.shtrih.util.CompositeLogger;
import com.shtrih.util.StaticContext;

import com.shtrih.LibManager;
import ru.shtrih_m.kktnetd.Api;
Expand Down Expand Up @@ -40,10 +39,6 @@ public void start() throws Exception {
if (isStarted()) {
return;
}
String libName = "libkktnetd";
String fileName = NativeResource.getFileName(libName);
InputStream stream = StaticContext.getContext().getAssets().open(fileName);
LibManager.getInstance(libName, stream);

logger.debug("PPP thread starting...");
ctx = 0;
Expand Down
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 = "642-7-g5f2f3d3";
public static final String VERSION = "642-8-g14d3fe4";
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
*/
package com.shtrih.fiscalprinter.port;

import com.shtrih.LibManager;
import com.shtrih.NativeResource;
import com.shtrih.jpos.fiscalprinter.FptrParameters;
import com.shtrih.util.CompositeLogger;
import com.shtrih.util.Localizer;
import com.shtrih.util.Hex;
import com.shtrih.util.StaticContext;

import java.io.IOException;
import java.io.InputStream;
import java.net.InetSocketAddress;
import java.net.Socket;

Expand Down Expand Up @@ -93,6 +97,12 @@ public void startPPPThread() throws Exception
if (pppThread != null) {
return;
}

String libName = "libkktnetd";
String fileName = NativeResource.getFileName(libName);
InputStream stream = StaticContext.getContext().getAssets().open(fileName);
LibManager.getInstance(libName, stream);

PPPConfig config = new PPPConfig();
config.transport.path = localSocketName;
config.transport.type = PPPConfig.TRANSPORT_TYPE_FORWARDER;
Expand Down
2 changes: 1 addition & 1 deletion Source/kktnetd/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Ant-Version: Apache Ant 1.9.4
Created-By: 1.8.0_65-b17 (Oracle Corporation)
Bundle-Name: kktnetd
Bundle-Version: 1.0.1
Bundle-Date: 2022-03-22 18:59:46 MSK
Bundle-Date: 2022-03-22 22:30:56 MSK
Implementation-Title: kktnetd
Implementation-Version: 1.0.1
Implementation-URL: http://www.shtrih-m.com
Expand Down

0 comments on commit 4c65f57

Please sign in to comment.