Hi,
I try to use the ReIndent Selection for C code and it's don't work, it's always putting everything like this.
Any hints
Thanks
Sylvain Bissonnette
I try to use the ReIndent Selection for C code and it's don't work, it's always putting everything like this.
Any hints
Thanks
Sylvain Bissonnette
Code: Select all
void DoKey(ushort ReGen)
{
static ushort KeyFirst,KeySecond,Value,Update;
Update = FALSE;
if (ReGen)
{
LCDClrSCR();
LCDGotoXY(1,1);
LCDWriteConstString(" InterComm V:1.0\0");
LCDGotoXY(1,2);
LCDWriteData(LCD_DATA,KeySecond+48);
LCDWriteData(LCD_DATA,KeyFirst+48);
Value = (KeySecond * 10) + KeyFirst;
Update = TRUE;
}
else
{
KeyScan();
if ((Key != 0xff) && (Key != 10) && (Key != 11))
{
KeySecond = KeyFirst;
KeyFirst = Key;
LCDGotoXY(1,2);
LCDWriteData(LCD_DATA,KeySecond+48);
LCDWriteData(LCD_DATA,KeyFirst+48);
Value = (KeySecond * 10) + KeyFirst;
Update = TRUE;
Key = 0xff;
}
}
if (Update == TRUE)
{
if (Value == 0)
{
LCDGotoXY(3,2);
LCDWriteConstString("->Broadcast Call #\0");
}
else if ((Value >= 1) && (Value < 40))
{
LCDGotoXY(3,2);
LCDWriteConstString("->Calling # \0");
}
else if ((Value >= 40) && (Value < 100))
{
LCDGotoXY(3,2);
LCDWriteConstString("-> \0");
}
}
if ((Key == 11) && (Value >= 0) && (Value < 40))
{
Key = 0xff;
StationCall(Value);
}
}