Printer capabilities

This commit is contained in:
Alex Voinea 2020-09-11 16:11:28 +03:00
parent f145769e98
commit 160af0a624
No known key found for this signature in database
GPG key ID: F5034E7CFCF2F973
2 changed files with 21 additions and 0 deletions

View file

@ -376,6 +376,11 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#endif
#endif
/**
* Include capabilities in M115 output
*/
// #define EXTENDED_CAPABILITIES_REPORT
//===========================================================================
//============================= Define Defines ============================
//===========================================================================

View file

@ -3404,6 +3404,17 @@ static void gcode_G92()
}
}
#ifdef EXTENDED_CAPABILITIES_REPORT
static void cap_line(const char* name, bool ena = false) {
printf_P(PSTR("Cap:%S:%c\n"), name, (char)ena + '0');
}
static void extended_capabilities_report()
{
//@todo
}
#endif //EXTENDED_CAPABILITIES_REPORT
#ifdef BACKLASH_X
extern uint8_t st_backlash_x;
@ -6803,6 +6814,11 @@ Sigma_Exit:
SERIAL_ECHOPGM(" UUID:");
SERIAL_ECHOLNPGM(MACHINE_UUID);
}
#ifdef EXTENDED_CAPABILITIES_REPORT
extended_capabilities_report();
#endif //EXTENDED_CAPABILITIES_REPORT
break;
/*!