Skip to content

Commit

Permalink
[apple2] fix sp_find_device to not stop on error devices when finding…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
markjfisher committed May 20, 2024
1 parent 0dffbd3 commit 565db86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [4.1.2] - 2024-05-20

Bugfix:

- [apple2] fix sp_find_device to not stop on error devices when finding names (thanks Eric Carr)

## [4.1.1] - 2024-05-14

- Enhance build to produce target specific versions of the library, e.g. apple2enh from apple2 src.
Expand Down
2 changes: 1 addition & 1 deletion apple2/src/bus/sp_find_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int sp_find_device(char *name) {

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

if (compare_padded_string((const char *)&sp_payload[5], name) == 0) {
return id;
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.1
4.1.2

0 comments on commit 565db86

Please sign in to comment.