Skip to content

Commit

Permalink
adf: More accurate value for write_bc_ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Jan 11, 2024
1 parent 18ecd15 commit 3946e7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/image/adf.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ static bool_t adf_open(struct image *im)
im->tracklen_bc = DD_TRACKLEN_BC;
im->ticks_per_cell = ((sampleclk_stk(im->stk_per_rev) * 16u)
/ im->tracklen_bc);
im->write_bc_ticks = im->ticks_per_cell / 16u;

im->nr_cyls = f_size(&im->fp) / (2 * 11 * 512);

Expand Down

0 comments on commit 3946e7f

Please sign in to comment.