Commit 6b1dd5e3 authored by YONG-LIN SU's avatar YONG-LIN SU

新增SW-0C16印表機兼容

parent 3fcea11a
...@@ -109,7 +109,8 @@ public class BlueToothPortViewModel extends AndroidViewModel { ...@@ -109,7 +109,8 @@ public class BlueToothPortViewModel extends AndroidViewModel {
if (getBluetoothDevice().getValue() == null){ if (getBluetoothDevice().getValue() == null){
return; return;
} }
if (!getBluetoothDevice().getValue().getName().equals("SW_891D")){ String deviceName = getBluetoothDevice().getValue().getName();
if (!(deviceName.equals("SW_891D") || deviceName.equals("SW_0C16"))){
return; return;
} }
updatePrinterPowerPercentFull(); updatePrinterPowerPercentFull();
...@@ -276,6 +277,9 @@ public class BlueToothPortViewModel extends AndroidViewModel { ...@@ -276,6 +277,9 @@ public class BlueToothPortViewModel extends AndroidViewModel {
case "SW_891D": case "SW_891D":
printer.print(bluetoothPort, tempCase); printer.print(bluetoothPort, tempCase);
break; break;
case "SW_0C16":
printer.print(bluetoothPort, tempCase);
break;
default: default:
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment