Determine which Disk II drives the FujiNet represents #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the ability for CONFIG to determine which Disk II drive(s) the FujiNet is connected as. Requires the CONTROL/STATUS commands added to the firmware on
diskii_drive_detectPR. FujiNetWIFI/fujinet-firmware#805During startup CONFIG will locate all the Disk II controllers in the Apple II and spin them quickly and query the FujiNet if it saw the drive spin. After determining which drives are connected to the FujiNet, the Disk II drives will display the slot & drive instead of a simple "1" or "2". If a drive is not detected then it will display as
NA. If older firmware is installed which doesn't supportIWM_CTRL_CLEAR_ENSEENthen the Disk II drives will use the simple "1" or "2".Mainly intended for use on the IIc since many people are confused about which FujiNet Disk II drive represents the external drive, however the display of slot/drive for the Disk II drives is useful on all Apple IIs.
Tested on IIe with Disk II card, IIc as external drive, IIe with Dsub19 IO controller, and IIc+.
Note: I had to workaround an issue with
sp_get_fuji_id()because for some reason it sometimes returns1instead of8and leavessp_fuji_id == 0. (Lines 61-65 in diskii.c)