Skip to content
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] Does not compile with MENU_LIST_MODE enabled TFT35 v3 #275

Closed
zech opened this issue Jan 1, 2020 · 6 comments
Closed

[BUG] Does not compile with MENU_LIST_MODE enabled TFT35 v3 #275

zech opened this issue Jan 1, 2020 · 6 comments

Comments

@zech
Copy link

zech commented Jan 1, 2020

Description

I'm trying to compile the latest firmware from the master branch myself with VSCode/PIO. As soon as I enable list mode it does not compile and throws a lot of error messages like this:

TFT\src\User\Menu\Move.c:206:33: error: 'YGCODE_UP' undeclared (first use in this function); did you mean 'YGCODE_INC'?

It does seem like the renaming of variables was not done everywhere because it compiles fine with this option disabled.

Steps to reproduce

  1. Change //#define MENU_LIST_MODE to #define MENU_LIST_MODE
  2. Compile

Expected behavior
Should compile without errors and warnings.

Actual behavior
Compiles with some errors as described above about variables not existing. And a ton of warnings about missing braces around initializers.

TFT\src\User\Menu\PreheatMenu.c:5:26: warning: missing braces around initializer [-Wmissing-braces]
 MENUITEMS preheatItems = {

Additional Information

Configuration_h.zip

@guruathwal
Copy link
Contributor

Fixed here #279

you can ignore the warnings, just compile again and they will disappear.

@guruathwal
Copy link
Contributor

@zech please close the issue

@zech
Copy link
Author

zech commented Jan 4, 2020

I can do when it's merged. Why isn't it so far?

@guruathwal
Copy link
Contributor

BTT is slow when it comes to merging. until then you can download the source with the fix from this repository: https://github.com/guruathwal/BIGTREETECH-TouchScreenFirmware

@zech
Copy link
Author

zech commented Jan 4, 2020

I see. The PR builds fine. Thanks. I'll close it then.

@zech zech closed this as completed Jan 4, 2020
Copy link

github-actions bot commented Apr 9, 2024

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.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants