Okay, Problem behoben: eine Zeile Code hat's dann getan:
Das if (c!=0) war's!Code:if (c!=0){ if(c=='<') { RS232.Cmd_Start=1; } if(RS232.Cmd_Start==1) { RS232.Cmd[RS232.i]=c; RS232.i++; } if(c=='>') { RS232.Cmd[RS232.i]='\0'; RS232.Cmd_Start=0; RS232.Cmd_Complete=1; RS232.i=0; } }
Jetzt geht's so, wie ich mir das vorstelle.
vG Simon
Lesezeichen