-
-
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
[BUG] STM32 compile error with TX_BUFFER_SIZE > 0 #16104
Comments
ESP32 defines a class just to make a flushableSerial...that does not flush. it's literally there to make compile work, which sounds to me like a symptom of something else being broken, but we could tack the same thing in for STM32 if it makes this work. |
Not sure if it worth the effort to make the compile work. Then we'll all forget about it and never implement it. There are some other checks on the STM32 platform for unsupported features, like emergency parser and what-not. Maybe just putting something there might be a better option for now. |
just a friendly poke here, but an idea on how we could fix this one? |
We could do what @xC0000005 suggested and create a dummy class. That'll prevent the error if someone enables that feature. It "hides" the underlying issue of not having a flushableSerial. Then we could create a compile warning or something to people it isn't ready yet. The gets rid of the "oh, it won't compile" with a "oh, it isn't ready yet" scenario. (This is optional, but I'd hate to have people turn something on, think it works, when it doesn't really) If we want to close out the bug, we could implement the workaround as suggested, then open a feature request to implement a flushableSerial for the STM32. I am not certain what Marlin's philosophy is in this situation. Leaving it as compile bug so we know it needs to be implemented, or hide it until it is implemented. Based on @xC0000005 says about the ESP32 class, I'd say the later. |
i'm not sure either but yes hiding it seems logical, how would we do that? i'm not good at coding so if i should make a PR then i need to know what to add or replace and where |
of course we need to make sure the core issue is not forgotten |
I can use the HAL_ESP32 as a guide and provide a PR for this. |
sounds like a plan then :-) |
was pr #16197 the one that fixes this one? |
All good |
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. |
Bug Description
Build error with STM32 and TX_BUFFER_SIZE > 0
My Configurations
https://github.com/randellhodges/Marlin/tree/skr-1.1-pro/Marlin
Steps to Reproduce
Expected behavior: To compile
Actual behavior: Doesn't compile
Additional Information
From serial.h:
Looks like there is no flushTX for the STM32 HAL?
The text was updated successfully, but these errors were encountered: