Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file "slot" in FILE_OPEN, FILE_READ inconsistencies in firmware and emulation #2

Open
bspruck opened this issue Aug 27, 2023 · 0 comments

Comments

@bspruck
Copy link

bspruck commented Aug 27, 2023

The slot cannot be set for files. There is no FILE_SLOT command. For files slot is always -1:

packet_t *packet = getPacket(comInCMD, slot);

Unluckily, FILE_OPEN used the file ID as slot number when pushing the packet, thus this value cannot be read

pushPacket(HUB_FILE_OPEN, comInBuffer[0]);

Two solutions:

In the handy emulation code this is broken as well. But here both functions use a slot number.

@bspruck bspruck mentioned this issue Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant