Browse Source

-Remove prefix for RFID device ID
-add description for id device rfid

ilhamitubagoes 4 years ago
parent
commit
1b5e5636c4

+ 2 - 2
app/src/main/java/com/fusi24/rfid/config/Constant.java

@@ -18,11 +18,11 @@ public final class Constant {
18
 
18
 
19
     /*===================================================================================================*/
19
     /*===================================================================================================*/
20
 
20
 
21
-    // API < 3.0
21
+    // API < 3.0 BUAT TEST DEVICE di FUSI
22
     public final static String PATH = "/dev/ttyS2";
22
     public final static String PATH = "/dev/ttyS2";
23
     public final static String PATHNAME = "/proc/gpiocontrol/set_id";
23
     public final static String PATHNAME = "/proc/gpiocontrol/set_id";
24
 
24
 
25
-    // API 3.0
25
+    // API 3.0 BUAT TEST DEVICE di BERAU COAL
26
     /*public final static String PATH = "/dev/ttyS3"; // Untuk versi 3.0
26
     /*public final static String PATH = "/dev/ttyS3"; // Untuk versi 3.0
27
     public final static String PATHNAME = "/proc/gpiocontrol/set_sam"; // untuk versi 3.0*/
27
     public final static String PATHNAME = "/proc/gpiocontrol/set_sam"; // untuk versi 3.0*/
28
 
28
 

+ 1 - 1
app/src/main/java/com/fusi24/rfid/ui/home/HomeActivity.java

@@ -126,7 +126,7 @@ public class HomeActivity extends BaseActivity implements HomeView, StatusScanAd
126
 
126
 
127
     @SuppressLint("SetTextI18n")
127
     @SuppressLint("SetTextI18n")
128
     private void loadingData(){
128
     private void loadingData(){
129
-        idDevice = "RFID-" + Build.ID + "-" + Build.DEVICE;
129
+        idDevice = "RFID" + Build.ID  + Build.DEVICE;
130
         binding.tvRfidGunId.setText(idDevice);
130
         binding.tvRfidGunId.setText(idDevice);
131
         binding.tvRfidCardNumber.setText(getSessionManager().getUserRfidNumber());
131
         binding.tvRfidCardNumber.setText(getSessionManager().getUserRfidNumber());
132
         binding.tvEmployeeName.setText(getSessionManager().getEmployeeName());
132
         binding.tvEmployeeName.setText(getSessionManager().getEmployeeName());