Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!decvax!tektronix!cae780!amdcad!sun!imagen!turner
From: turner@imagen.UUCP (D'arc Angel)
Newsgroups: comp.sys.atari.st
Subject: help - a little of your time, if not the ST's
Message-ID: <723@imagen.UUCP>
Date: Mon, 15-Dec-86 18:36:21 EST
Article-I.D.: imagen.723
Posted: Mon Dec 15 18:36:21 1986
Date-Received: Wed, 17-Dec-86 05:00:45 EST
Organization: The Houses of the Holy
Lines: 52
Keywords: clock,Settime,Gettime


i have spent the weekend pounding my head against this problem, i
run the following program (compiler - Megamax, OS - microCshell), it
seems to set the date, the time returned by Gettime is the same as 
what i passed to Settime and it even changes (the secs tic by) in
the loop, but when i return to GEM and look in the control panel,
the time is unchanged even after waiting upto 5 min. as you can see
from the commented out part, i also tried the InteliKeyboard, but
alas with no better success. (BTW how do you read back packets from
Ikbdws ?????)

if it matters, i am running on a 520ST with a 1 meg upgrade and TOS
in rom

=====================================================================
#include 
#include 

main()

{
	long time,time1,sstack;
	unsigned char kcmds[20];
	int i,j,k;
		

	time = 0x0d304000;
	printf("before call time = %lx\n",time);
	Settime(time);
	for(i=0;i<100;i++) {
		time1 = Gettime(); 
		printf("after call time = %lx\n",time1);
	}
/***********************************************************************
	kcmds[0] = 0x1b;
	kcmds[1] = 0x86;
	kcmds[2] = 0x12;
	kcmds[3] = 0x13;
	kcmds[4] = 0x14;
	kcmds[5] = 0x25;
	kcmds[6] = 0x00;
	Ikbdws(7, &kcmds[0]); 
**************************************************************************/
}

===========================================================================

-- 
"I will drink of every cup once" saith Jurgen - James Branch Cambell
Name:	James M. Turner 			   
Mail:	Imagen Corp. 2650 San Tomas Expressway Santa Clara, CA 95052-8101 
UUCP:	...{decvax,ucbvax}!decwrl!imagen!turner      AT&T: (408) 986-9400