nanogui: Problem with touch screen


Previous by date: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, jonathan.foster.philips.com
Next by date: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, Rakesh
Previous in thread: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, jonathan.foster.philips.com
Next in thread: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, Rakesh

Subject: Re: [nanogui] Problem with touch screen
From: Rakesh ####@####.####
Date: 9 May 2002 09:55:08 -0000
Message-Id: <3CDA3036.3984FD62@gdatech.co.in>

Hi,
Its not crashing.... whenever i am touching the screen i am getting x, y
value which i am printing in kernel driver itself........And if i press
"cntl-C" i m coming back to root prompt. So it s not hanging........

####@####.#### wrote:
> 
> Hi Rakesh,
> 
> You don't actually say what goes wrong, but looking at the code I guess it hangs or crashes?
> 
> > static int PD_Read(MWCOORD *px, MWCOORD *py, MWCOORD *pz, int *pb)
> > {
> >   /* read a data point */
> >   short data[4];
> >   int bytes_read;
> >   EPRINTF("\n\rInside PD_READ");
> >
> >   bytes_read = read(pd_fd, data, 4 * sizeof(data));
>                                    ^^^^^^^^^^^^^^^^
> I think you mean either "sizeof(data)" or "4 * sizeof(data[0])"?
> 

Sorry, it was a mistake, its 
	bytes_read = read(pd_fd, data,  sizeof(data));
> >
> >   if (bytes_read != (4 * sizeof(data))) {
>                        ^^^^^^^^^^^^^^^^
> And again.
> 
> Hope this helps.
> 
> Kind regards,
> 

so can u suggest me on this......

Thanks & Regards.......

Rakesh
> Jon Foster
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####


Previous by date: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, jonathan.foster.philips.com
Next by date: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, Rakesh
Previous in thread: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, jonathan.foster.philips.com
Next in thread: 9 May 2002 09:55:08 -0000 Re: Problem with touch screen, Rakesh


Powered by ezmlm-browse 0.20.