fixed some bugs/unproper code
This commit is contained in:
11
lcdriv.c
11
lcdriv.c
@ -96,11 +96,12 @@ static int LcRead(long pc, LcDriv *me) {
|
||||
EveWrite(eve, "X");
|
||||
FSM_NEXT
|
||||
LcStatus(me); /* check for errors */
|
||||
// if (!me->remote) goto skiprmt;
|
||||
// EveWrite(eve, "C0");
|
||||
// me->remote = 0;
|
||||
// FSM_NEXT
|
||||
|
||||
/*
|
||||
if (!me->remote) goto skiprmt;
|
||||
EveWrite(eve, "C0");
|
||||
me->remote = 0;
|
||||
FSM_NEXT
|
||||
*/
|
||||
skiprmt:
|
||||
if (me->dig[1] < 0) goto skip1;
|
||||
EveWrite(eve, "R1"); /* read sensor 1 */
|
||||
|
Reference in New Issue
Block a user