differentiate forward/reverse limit switches in 'crashed' log message

This commit is contained in:
Douglas Clowes
2013-05-31 09:27:50 +10:00
parent ea28b7a78c
commit 7e0e068ee2

View File

@@ -2984,10 +2984,10 @@ static void DMC2280Error(void *pData, int *iCode, char *error, int errLen){
strncpy(error, "Begin not possible due to limit switch", (size_t)errLen);
break;
case RVRSLIM:
strncpy(error, "Crashed into limit switch", (size_t)errLen);
strncpy(error, "Crashed into reverse limit switch", (size_t)errLen);
break;
case FWDLIM:
strncpy(error, "Crashed into limit switch", (size_t)errLen);
strncpy(error, "Crashed into forward limit switch", (size_t)errLen);
break;
case POSFAULT:
strncpy(error, "Positioning fault detected", (size_t)errLen);