gojkosisa
Junior Member level 3
It should be:
This is code for receiving sensors value:
With UART terminal I receive this values every 5 seconds. But with above code every 20 seconds.
Code:
if(oldUart==101 )
This is code for receiving sensors value:
Code:
if(flag==1)
{
flag=0;
if(oldUart==100) //pressure sensor
{
stringUart=newUart;
ByteToStr(stringUart,someText);
Glcd_write_Text(someText,100,0,1);
}
if(oldUart==101 ) //temperature sensor
{
stringUart=newUart;
ByteToStr(stringUart,someText);
Glcd_write_Text(someText,49,0,1);
}
}
With UART terminal I receive this values every 5 seconds. But with above code every 20 seconds.