if(ulDataBuf!=15 && ulData==15)
{
if(ulDatabuf == 14)
{
timeON+=500000;
}
else if(ulDatabuf == 13)
{
if(timeON!=0)
{
timeON-=500000;
}
}
else if(ulDatabuf == 11)
{
timeOFF+=500000;
}
else if(ulDatabuf == 7)
{
if(timeOFF!=0)
{
timeOFF-=500000;
}
}
}
1
solved Switch statement to IF/while [closed]