ys_
01/03/2008, 04h32
When using µlibrary, Palib won't work at all if I try to make use of the wifi functions. This simple example won't work at all:
int main()
{
//Initialization of PA_Lib
PA_Init();
PA_InitVBL();
PA_InitWifi();
//Initialization of µlibrary
ulInit(UL_INIT_ALL);
ulInitGfx();
ulInitText();
bool connected=false;
while(1){
ulReadKeys(0);
if(!connected){ PA_ConnectWifiWFC(); connected=true; }
ulStartDrawing2D();
ulDrawString(10,10,"Conectado..");
ulEndDrawing();
ulSyncFrame();
}
return 0;
}
It's too much like the "connect" example from PAlib, but using µlibrary to give the user some feedback about the connection. Nothing will be printed.
As far as I know, the call to PA_ConnectWifiWFC() will NEVER return. If I try to do the same but without using µlibrary, then it will work.
Can somebody help me with this? Thanks.
int main()
{
//Initialization of PA_Lib
PA_Init();
PA_InitVBL();
PA_InitWifi();
//Initialization of µlibrary
ulInit(UL_INIT_ALL);
ulInitGfx();
ulInitText();
bool connected=false;
while(1){
ulReadKeys(0);
if(!connected){ PA_ConnectWifiWFC(); connected=true; }
ulStartDrawing2D();
ulDrawString(10,10,"Conectado..");
ulEndDrawing();
ulSyncFrame();
}
return 0;
}
It's too much like the "connect" example from PAlib, but using µlibrary to give the user some feedback about the connection. Nothing will be printed.
As far as I know, the call to PA_ConnectWifiWFC() will NEVER return. If I try to do the same but without using µlibrary, then it will work.
Can somebody help me with this? Thanks.