Hi everybody,
I'm trying to enable a communication between a Zire 21 and MCP2120,I found the next 
sample to do that:

err = SrmOpen(0x8000,9600,&portid);
        
if(err) //Is there any error?
{
  StrPrintF(buf,"Unable to open port,error is [%d]",err);
  FrmCustomAlert(AlertError,buf,NULL,NULL);
  return false;
}

The code above works well.
        
//enable ir
err = SrmControl(portid,srmCtlIrDAEnable,&flags,&flagssize);
if(err) //Is there any error?
{
  StrPrintF(buf,"Error[%d] : srmCtlIrEnable",err);
  FrmCustomAlert(AlertError,buf,NULL,NULL);
  return;
}

But when I try to switch from RS232 to IrDA I got the error 0x030a "Palm OS Error 
Codes",when I tried to enable the IrDA communication,Does anybody know what it is 
happening?.Thanks 
Regards
Edgar T. Lopez  

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to