adf: More accurate value for write_bc_ticks

This commit is contained in:
Keir Fraser 2024-01-11 13:26:58 +00:00
parent 18ecd15be9
commit 3946e7f7a6

View file

@ -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);