-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trinamic.app unused variable #17899
Comments
its only a warning in trinamic.cpp
|
In other words, it can be ignored 🙂 |
thank you :-) |
To suppress the warning, wrap that section with #if HAS_TMC_UART
struct {
const void *ptr[TMCAxis::TOTAL];
bool began(const TMCAxis a, const void * const p) {
LOOP_L_N(i, a) if (p == ptr[i]) return true;
ptr[a] = p; return false;
};
} sp_helper;
#define HW_SERIAL_BEGIN(A) do{ if (!sp_helper.began(TMCAxis::A, &A##_HARDWARE_SERIAL)) \
A##_HARDWARE_SERIAL.begin(TMC_BAUD_RATE); }while(0)
#endif |
I already posted a PR for it. The solution is a little different than you suggested because that would still warn if you are using software serial. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello,
I detected a problem during compile SKR 1.4 Turbo with TMC2208 and ENDER 4 Conf.
trinamic.app unused variable:
The text was updated successfully, but these errors were encountered: