fix default HDD sectors-per-track

Wed, 16 Jan 2013 00:41:51 +0000

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 16 Jan 2013 00:41:51 +0000
changeset 127
4c03f6433d0d
parent 126
d79a028161fd
child 128
3246b74d96bc
child 129
8b24770dea79

fix default HDD sectors-per-track

The 64MB Micropolis drive we're trying to emulate in FreeBee has 17 sectors
per track. Fix this in main.c to avoid tripping the sector range checks.

src/main.c file | annotate | diff | revisions
     1.1 --- a/src/main.c	Wed Jan 16 00:40:18 2013 +0000
     1.2 +++ b/src/main.c	Wed Jan 16 00:41:51 2013 +0000
     1.3 @@ -48,7 +48,7 @@
     1.4  		state.hdc_disc0 = NULL;
     1.5  		return (0);
     1.6  	}else{
     1.7 -		wd2010_init(&state.hdc_ctx, state.hdc_disc0, 512, 16, 8);
     1.8 +		wd2010_init(&state.hdc_ctx, state.hdc_disc0, 512, 17, 8);
     1.9  		fprintf(stderr, "Disc image loaded.\n");
    1.10  		return (1);
    1.11  	}