Skip to content

Commit d16ad28

Browse files
authored
Merge pull request #6 from cslrfid/release-1.15.0
Hotfixes on Long EPC Decoding
2 parents ec9683e + ea3207f commit d16ad28

28 files changed

+8
-7
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
applicationId "com.csl.cs108ademoapp"
77
minSdkVersion 19
88
targetSdkVersion 26
9-
versionCode 19
10-
versionName "1.14.0"
9+
versionCode 20
10+
versionName "1.15.0"
1111
}
1212
compileOptions {
1313
sourceCompatibility JavaVersion.VERSION_1_7

app/libs/cs108library4a-debug.aar

-108 KB
Binary file not shown.

app/libs/cs108library4a-release.aar

-108 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

app/release/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":19,"versionName":"1.14.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
1+
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":20,"versionName":"1.15.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]

app/src/main/java/com/csl/cs108ademoapp/fragments/SettingAdminFragment.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public void onActivityCreated(Bundle savedInstanceState) {
131131
buttonCSLServer.setOnClickListener(new View.OnClickListener() {
132132
@Override
133133
public void onClick(View view) {
134-
String serverLocation = "https://" + "www.convergence.com.hk:" + "29090/WebServiceRESTs/1.0/req/" + "create-update-delete/update-entity/" + "tagdata";
134+
String serverLocation = "https://" + "democloud.convergence.com.hk:" + "29090/WebServiceRESTs/1.0/req/" + "create-update-delete/update-entity/" + "tagdata";
135+
//String serverLocation = "https://" + "www.convergence.com.hk:" + "29090/WebServiceRESTs/1.0/req/" + "create-update-delete/update-entity/" + "tagdata";
135136
//String serverLocation = "http://ptsv2.com/t/10i1t-1519143332/post";
136137
editTextServer.setText(serverLocation);
137138
}

cs108library4a/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ android {
55
defaultConfig {
66
minSdkVersion 19
77
targetSdkVersion 26
8-
versionCode 19
9-
versionName "1.14.0"
8+
versionCode 20
9+
versionName "1.15.0"
1010

1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1212

cs108library4a/src/main/java/com/csl/cs108library4a/Cs108Connector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,7 @@ void mRx000UplinkHandler() {
43394339
while (mRfidToReadingOffset > startIndex) {
43404340
int packageLengthRead = 0;
43414341
if (mRfidToReadingOffset - startIndex >= 8) {
4342-
packageLengthRead = mRfidToReading[startIndex + 5] * 256 + mRfidToReading[startIndex + 4];
4342+
packageLengthRead = (mRfidToReading[startIndex + 5] & 0xFF) * 256 + (mRfidToReading[startIndex + 4] & 0xFF);
43434343
}
43444344
int expectedLength = 8 + packageLengthRead * 4;
43454345
if (mRfidToReading[startIndex + 0] == 0x04) expectedLength = 8 + packageLengthRead;

0 commit comments

Comments
 (0)