![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: Command.c
- Revision:
- 93:b3803774f110
- Parent:
- 92:c892f0311aa7
- Child:
- 98:95b8e79f13e1
diff -r c892f0311aa7 -r b3803774f110 Command.c --- a/Command.c Fri Mar 25 11:11:46 2016 +0000 +++ b/Command.c Fri Mar 25 14:10:50 2016 +0000 @@ -367,17 +367,18 @@ - CountBuFFIn=ReadChekCon(BuffTemp); // чтение данных из консоли + CountBuFFIn=ReadChekCon1(BuffTemp); // чтение данных из консоли if(CountBuFFIn==1) { // если есть первый байт if (BuffTemp[0] != SOC_In) { - ReadCon(BuffTemp); + ReadCon1(BuffTemp); Gyro.RsErrLine += 0x100;//WriteCon("\n\r ...Error.... "); - BuffTemp[99]=Gyro.RsErrLine; + BuffTemp[99]=Gyro.RsErrLine; + LoopOn } } else if(CountBuFFIn==2) { //если второй ,fqn if (BuffTemp[1] != Gyro.My_Addres) { - ReadCon(BuffTemp); + ReadCon1(BuffTemp); Gyro.RsErrLine += 0x1;//WriteCon("\n\r ...Error_ADDRES.... "); } } else if(CountBuFFIn==3) { // если ьоетий байт @@ -403,10 +404,10 @@ } else if(CountBuFFIn > (N-1)) { - ReadCon(BuffTemp); + ReadCon1(BuffTemp); switch(Gyro.CMD_In) { case 0x99: - LoopOn + CMD_Maintenance(); break; case 0xD8: