From f656b64eecb794e2f7a9dbde735ca98b081f657e Mon Sep 17 00:00:00 2001 From: Edward Emelianov Date: Wed, 12 Feb 2025 14:56:23 +0300 Subject: [PATCH] commented thrash --- F3:F303/Multistepper/TODO | 5 +++++ F3:F303/Multistepper/steppers.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 F3:F303/Multistepper/TODO 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;