Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 4c32da1

Browse files
committed
Fix small issue in 0be6dda
No need to move failed to map to 3, as that's already 1
1 parent 5d172da commit 4c32da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gamax92/thistle/devices/ComponentSelector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ public void write(int address, int data) {
157157
String name = (String) tsfdata;
158158
for (Map.Entry<String, String> entry : machine.components().entrySet()) {
159159
if (entry.getValue().equals(name)) {
160-
status = mapComponent(entry.getKey(), select, fSpecific) ? 0 : 3;
160+
status = mapComponent(entry.getKey(), select, fSpecific) ? 0 : 1;
161161
break;
162162
}
163163
}
164164
} else { // Has to be UUID
165165
String uuid = ((UUID) tsfdata).toString();
166166
for (Map.Entry<String, String> entry : machine.components().entrySet()) {
167167
if (entry.getKey().equals(uuid)) {
168-
status = mapComponent(entry.getKey(), select, fSpecific) ? 0 : 3;
168+
status = mapComponent(entry.getKey(), select, fSpecific) ? 0 : 1;
169169
break;
170170
}
171171
}

0 commit comments

Comments
 (0)