|
@@ -467,6 +467,14 @@ public class MainActivity extends BaseActivity {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @JavascriptInterface
|
|
|
|
+ public void disConnectPortAll() {
|
|
|
|
+ Log.e(TAG, "disConnectPortAll");
|
|
|
|
+ for (SerialPortManager port:mPortList) {
|
|
|
|
+ port.close();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private void toCloseCamera() {
|
|
private void toCloseCamera() {
|