Skip to content

Commit 7a8a60b

Browse files
committed
4.5.1 set dtimlo for appkey read/write in atari
1 parent a0bf887 commit 7a8a60b

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

Changelog.md

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

33
## [Unreleased]
44

5+
## [4.5.1] - 2024-08-24
6+
7+
- [atari] set dtimlo to 1 for appkey read, 2 for appkey write to reduce timeouts when reading / writing a new appkey
8+
- [adam] initial implementations of network, no release
9+
510
## [4.5.0] - 2024-08-08
611

712
- [apple2] send the network unit number with the payloads for network calls to allow for multiple network sub-devices on a SP network device

atari/src/fn_fuji/fuji_appkey_open_read.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ bool fuji_read_appkey(uint8_t key_id, uint16_t *count, uint8_t *data)
5050
}
5151

5252
copy_fuji_cmd_data(t_fuji_read_appkey);
53-
OS.dcb.dbuf = buffer;
54-
OS.dcb.dbyt = buffer_size + 2; // add 2 for count bytes
53+
OS.dcb.dbuf = buffer;
54+
OS.dcb.dbyt = buffer_size + 2; // add 2 for count bytes
55+
OS.dcb.dtimlo = 1; // make timeout 1 second, as it's an SD read if it exists, if it's no there, we get a double timeout and we really don't want to wait forever
5556
bus();
5657
if (!fuji_success()) {
5758
free(buffer);

atari/src/fn_fuji/fuji_appkey_open_write.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ bool fuji_write_appkey(uint8_t key_id, uint16_t count, uint8_t *data)
4343
OS.dcb.dbuf = data;
4444
OS.dcb.dbyt = keysize; // we have to specify the 64/256/... value in dbyt
4545
OS.dcb.daux = count; // ... but the count can be less in daux to tell the FN how much of the buffer needs to be written
46+
OS.dcb.dtimlo = 2; // make timeout 2 second, as it's an SD write and it is 'local' if it can work, so should be fast.
4647
bus();
4748
return fuji_success();
4849
}

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.5.0
1+
4.5.1

0 commit comments

Comments
 (0)