Skip to content

Commit 565db86

Browse files
committed
[apple2] fix sp_find_device to not stop on error devices when finding names
1 parent 0dffbd3 commit 565db86

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## [4.1.2] - 2024-05-20
6+
7+
Bugfix:
8+
9+
- [apple2] fix sp_find_device to not stop on error devices when finding names (thanks Eric Carr)
10+
511
## [4.1.1] - 2024-05-14
612

713
- Enhance build to produce target specific versions of the library, e.g. apple2enh from apple2 src.

apple2/src/bus/sp_find_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int sp_find_device(char *name) {
4848

4949
for (id = 1; id <= deviceCount; id++) {
5050
err = sp_status(id, 3);
51-
if (err != 0) return -err;
51+
if (err != 0) continue;
5252

5353
if (compare_padded_string((const char *)&sp_payload[5], name) == 0) {
5454
return id;

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.1
1+
4.1.2

0 commit comments

Comments
 (0)