-
-
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] compile ia_creality fails #25429
Comments
This environment compiles fine using the official InsanityAutomation repo. I can't imagine why code hacked in without the original developer's approval or support wouldn't operate as expected. |
Interestingly on mega2560 (what this display was designed for) It compiles without issues. |
@rmbq Please test this PR |
yes, but on avr they are 2 bytes, not 4. Just changing them to 32 is not the answer. That is going backwards. Need to check if any actually exceed 16bit values.. |
Probably the screen also needs int32 to works. Maybe we need the change the screen firmware to use 16 instead of 32. |
Be careful making changes with overloaded methods. This situation demonstrated fairly quickly why I didn't put this upstream. Try reverting the breaking changes, as I doubt this was the only UI broken. |
I could use your help sorting out the Resistive Touch Screen code, as we're getting another one in support of the Ender-5 S1, and it would be awesome to have all the RTS screen common code in a root class, and then make sub-classes for the different variants. Plus, the Ender-5 S1 user interface is less than ideal, including not yet supporting folders on SD card. As for the ambiguity of the overloaded methods, we can probably get those sorted by going through all the calls to |
@rmbq — Thanks for the report. I'll have this patched forthwith! |
@rmbq — There are a number of other compile errors with those configurations. What version of Marlin are you using them with? Do you have other modified files (e.g., pins) that cover these issues?
|
@rmbq — Note that |
@InsanityAutomation — ICYMI I also made this change (since void RTSSHOW::RTS_SndData(const int n, const uint32_t addr, const uint8_t cmd/*=VarAddr_W*/) {
if (cmd == VarAddr_W) {
- if ((uint8_t)n > 0xFFFF) {
- snddat.data[0] = n >> 16;
- snddat.data[1] = n & 0xFFFF;
- snddat.len = 7;
- }
- else {
snddat.data[0] = n;
snddat.len = 5;
- } |
See PR #25440 for the patch, where using native types for |
@thinkyhead yes sorry, i modified my board to support other features and i forgot to add stock configurations files. But they weren't the cause of the issue. Thanks for the patch! |
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. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
after f0cc8bd i can't compile with
#define DGUS_LCD_UI IA_CREALITY
and
#define MOTHERBOARD BOARD_CREALITY_V453
Errors:
Bug Timeline
since f0cc8bd
Expected behavior
compile
Actual behavior
error while compile
Steps to Reproduce
Compile with
#define DGUS_LCD_UI IA_CREALITY
and
#define MOTHERBOARD BOARD_CREALITY_V453
Version of Marlin Firmware
last bugfix 2.1.x
Printer model
creality cr 10 smart
Electronics
stock
Add-ons
none
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Configuration Files
The text was updated successfully, but these errors were encountered: