diff --git a/F3:F303/Multistepper/TODO b/F3:F303/Multistepper/TODO new file mode 100644 index 0000000..9c5556e --- /dev/null +++ b/F3:F303/Multistepper/TODO @@ -0,0 +1,5 @@ +Check all code: + +1) No "free" messages should be, only answers to requests! +2) gotozN should return "OK" or error, not "gotozN=0"! + diff --git a/F3:F303/Multistepper/steppers.c b/F3:F303/Multistepper/steppers.c index abd0a75..6dc33d1 100644 --- a/F3:F303/Multistepper/steppers.c +++ b/F3:F303/Multistepper/steppers.c @@ -329,8 +329,8 @@ static void chkstepper(int i){ // check DIAGN only for UART/SPI if(the_conf.motflags[i].drvtype == DRVTYPE_UART || the_conf.motflags[i].drvtype == DRVTYPE_SPI){ if(motdiagn(i) && state[i] != STP_ERR){ // error occured - DIAGN is low - DBG("Oldstate: "); USB_putbyte('0' + state[i]); newline(); - char Nm = '0'+i; + //DBG("Oldstate: "); USB_putbyte('0' + state[i]); newline(); + /*char Nm = '0'+i; USB_sendstr(STR_STATE); USB_putbyte(Nm); USB_sendstr("=6\n"); switch(the_conf.motflags[i].drvtype){ case DRVTYPE_UART: @@ -346,7 +346,7 @@ static void chkstepper(int i){ break; default: break; - } + }*/ emstopmotor(i); state[i] = STP_ERR; return;