[SeaBIOS] [PATCH 5/6] Reset the floppy motor count, so the motor keeps spinning 2 seconds after a floppy operation, performed by floppy_drive_pio()

Nikolay Nikolov nickysn at gmail.com
Sun Feb 4 16:29:32 CET 2018


This replaces patches 5 and 6 from the previous patch series as per
your suggestion.

Nikolay

On Sun, 2018-02-04 at 17:27 +0200, Nikolay Nikolov wrote:
> Signed-off-by: Nikolay Nikolov <nickysn at users.sourceforge.net>
> ---
>  src/hw/floppy.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/hw/floppy.c b/src/hw/floppy.c
> index 573c45f..77dbade 100644
> --- a/src/hw/floppy.c
> +++ b/src/hw/floppy.c
> @@ -356,6 +356,7 @@ floppy_drive_pio(u8 floppyid, int command, u8
> *param)
>  
>      // Send command.
>      int ret = floppy_pio(command, param);
> +    SET_BDA(floppy_motor_counter, FLOPPY_MOTOR_TICKS); // reset
> motor timeout
>      if (ret)
>          return ret;
>  



More information about the SeaBIOS mailing list