Rev 1639 | Rev 1657 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1639 | Rev 1654 | ||
---|---|---|---|
Line 407... | Line 407... | ||
407 | 407 | ||
408 | switch(RxdBuffer[2]) |
408 | switch(RxdBuffer[2]) |
409 | { |
409 | { |
410 | // 't' comand placed here only for compatibility to BL |
410 | // 't' comand placed here only for compatibility to BL |
411 | case 't':// Motortest |
411 | case 't':// Motortest |
412 | if(AnzahlEmpfangsBytes > 20) memcpy(&MotorTest[0], (unsigned char *)pRxData, sizeof(MotorTest)); |
412 | if(AnzahlEmpfangsBytes > 10) memcpy(&MotorTest[0], (unsigned char *)pRxData, sizeof(MotorTest)); |
413 | else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4); |
413 | else memcpy(&MotorTest[0], (unsigned char *)pRxData, 4); |
414 | while(!UebertragungAbgeschlossen); |
414 | while(!UebertragungAbgeschlossen); |
415 | SendOutData('T', MeineSlaveAdresse, 0); |
415 | SendOutData('T', MeineSlaveAdresse, 0); |
416 | PC_MotortestActive = 250; |
416 | PC_MotortestActive = 250; |