Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewParkAPP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YONG-LIN SU
NewParkAPP
Commits
6b1dd5e3
Commit
6b1dd5e3
authored
Jan 08, 2024
by
YONG-LIN SU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增SW-0C16印表機兼容
parent
3fcea11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
BlueToothPortViewModel.java
.../android/newparkapp/viewModel/BlueToothPortViewModel.java
+5
-1
No files found.
app/src/main/java/ecom/android/newparkapp/viewModel/BlueToothPortViewModel.java
View file @
6b1dd5e3
...
...
@@ -109,7 +109,8 @@ public class BlueToothPortViewModel extends AndroidViewModel {
if
(
getBluetoothDevice
().
getValue
()
==
null
){
return
;
}
if
(!
getBluetoothDevice
().
getValue
().
getName
().
equals
(
"SW_891D"
)){
String
deviceName
=
getBluetoothDevice
().
getValue
().
getName
();
if
(!(
deviceName
.
equals
(
"SW_891D"
)
||
deviceName
.
equals
(
"SW_0C16"
))){
return
;
}
updatePrinterPowerPercentFull
();
...
...
@@ -276,6 +277,9 @@ public class BlueToothPortViewModel extends AndroidViewModel {
case
"SW_891D"
:
printer
.
print
(
bluetoothPort
,
tempCase
);
break
;
case
"SW_0C16"
:
printer
.
print
(
bluetoothPort
,
tempCase
);
break
;
default
:
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment