mirror of
https://github.com/RfidResearchGroup/RFIDtools.git
synced 2026-05-12 11:19:59 -07:00
Communication rebuild.
This commit is contained in:
@@ -74,7 +74,8 @@ public abstract class UsbBulkTransferRaw implements DriverInterface<String, UsbM
|
||||
break;
|
||||
|
||||
case UsbManager.ACTION_USB_DEVICE_DETACHED:
|
||||
mCallback.onDetach(name);
|
||||
if (mCallback != null)
|
||||
mCallback.onDetach(name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -83,7 +84,8 @@ public abstract class UsbBulkTransferRaw implements DriverInterface<String, UsbM
|
||||
|
||||
private void initAndCall(String name) {
|
||||
if (init()) {
|
||||
mCallback.onAttach(name);
|
||||
if (mCallback != null)
|
||||
mCallback.onAttach(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import cn.dxl.com.Communication;
|
||||
import cn.dxl.com.DeviceChecker;
|
||||
|
||||
public class EmptyDeivce extends DeviceChecker {
|
||||
|
||||
public EmptyDeivce(Communication communication) {
|
||||
super(communication);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user