diff --git a/app/build.gradle b/app/build.gradle index 7025e23..7f7f01a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,7 +14,7 @@ android { namespace 'in.sminnovations.hpostesting' defaultConfig { - applicationId "in.sminnovations.hpostesting.prod" + applicationId "in.sminnovations.hpostesting" minSdk 21 targetSdk 33 versionCode 2 diff --git a/app/src/main/java/com/example/hpostesting/presentation/testRight/UsbService.kt b/app/src/main/java/com/example/hpostesting/presentation/testRight/UsbService.kt index b7aeb54..f98c345 100644 --- a/app/src/main/java/com/example/hpostesting/presentation/testRight/UsbService.kt +++ b/app/src/main/java/com/example/hpostesting/presentation/testRight/UsbService.kt @@ -24,7 +24,6 @@ class UsbService : Service() { private val TAG = "UsbService" inner class UsbServiceBinder : Binder() { - // Return this instance of UsbService so clients can call public methods fun getService(): UsbService = this@UsbService } @@ -39,14 +38,12 @@ class UsbService : Service() { mPort = driver.ports[0] // Most devices have just one port (port 0) mPort.open(connection) mPort.setParameters(115200, 8, UsbSerialPort.STOPBITS_1, UsbSerialPort.PARITY_NONE) -// isUsbConnected = true Log.d(TAG, "My Usb Connected ${mPort.driver}") val usbIoManager = SerialInputOutputManager(mPort, object : SerialInputOutputManager.Listener{ override fun onNewData(data: ByteArray?) { -// Log.e(TAG, "onNewData() called inside eventDrivenWrite()") listener?.onUsbRead(data) } override fun onRunError(e: Exception?) {