From: Ben Gras Date: Fri, 16 Feb 2007 15:56:00 +0000 (+0000) Subject: made default wakeup time correct X-Git-Tag: v3.1.3~73 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=49d2195722c408ba4eb951f0117778c0665323e6;p=minix.git made default wakeup time correct --- diff --git a/drivers/at_wini/at_wini.c b/drivers/at_wini/at_wini.c index 9e454d030..353632dd4 100644 --- a/drivers/at_wini/at_wini.c +++ b/drivers/at_wini/at_wini.c @@ -427,14 +427,14 @@ PRIVATE void init_params() struct wini *wn; u8_t params[16]; int s; - long wakeup_secs; + long wakeup_secs = WAKEUP_SECS; /* Boot variables. */ env_parse("ata_std_timeout", "d", 0, &w_standard_timeouts, 0, 1); env_parse("ata_pci_debug", "d", 0, &w_pci_debug, 0, 1); env_parse("ata_instance", "d", 0, &w_instance, 0, 8); env_parse("ata_no_dma", "d", 0, &disable_dma, 0, 1); - env_parse("ata_id_timeout", "d", 0, &wakeup_secs, 1, 60); + env_parse("ata_id_timeout", "d", WAKEUP_SECS, &wakeup_secs, 1, 60); env_parse("atapi_debug", "d", 0, &atapi_debug, 0, 1); w_identify_wakeup_ticks = wakeup_secs * HZ;