home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 August - Disc 3
/
chip_20018103_hu.iso
/
amiga
/
chiputil
/
operclock.rea
< prev
next >
Wrap
Text File
|
2001-06-20
|
904b
|
21 lines
Short: Weird battclock fix, reboot if stopped clock
Author: neil@tkgbbs.freeserve.co.uk (Neil Williams)
Uploader: neil@tkgbbs.freeserve.co.uk
Type: util/boot
There's a problem with the hardware on an A4000 desktop I have. When started up
from cold, the real time clock does not tick. If you were to start the Workbench
clock program, the second hand remains stuck at whatever second it was when the
machine was switched on. "SetClock Load" does nothing to help, although it does
set the correct time again.
All it takes to get the machine to work is a single reboot. So, I wrote this.
Look at the C source to see what happens, it's very simple. The provided
executable was compiled with SAS/C 6.59.
The program works out what time it is, then delays for two seconds and gets the
time again. If the time has not changed, the machine is rebooted.
I hope someone can find this program useful.