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] Error in parseACK.c when using a Delta Printer #2858

Closed
lightmaster opened this issue Oct 20, 2023 · 3 comments · Fixed by #2840
Closed

[BUG] Error in parseACK.c when using a Delta Printer #2858

lightmaster opened this issue Oct 20, 2023 · 3 comments · Fixed by #2840
Labels
bug Something isn't working

Comments

@lightmaster
Copy link
Contributor

Description

I haven't used my printer in about 8 months now. Trying to build this now and I'm getting the following error for a TFT43_V3. Seems its a issue with the if blocks in parseACK.c, specifically for when DELTA_PROBE_TYPE != 0. Not too familiar with the coding, but that's the spot where the first error is poping up at.

TFT/src/User/API/parseACK.c: In function 'parseACK':
TFT/src/User/API/parseACK.c:939:9: error: expected '}' before 'else'
         else
         ^~~~
TFT/src/User/API/parseACK.c:369:10: warning: variable 'avoid_terminal' set but not used [-Wunused-but-set-variable]
     bool avoid_terminal = false;
          ^~~~~~~~~~~~~~
TFT/src/User/API/parseACK.c:949:5: error: 'else' without a previous 'if'
     else if (ack_starts_with("M200"))
     ^~~~
Compiling .pio/build/BIGTREE_TFT43_V3_0/src/src/User/Fatfs/ffsystem.o
TFT/src/User/API/parseACK.c:1398:10: error: 'avoid_terminal' undeclared (first use in this function); did you mean 'menuTerminal'?
     if (!avoid_terminal && MENU_IS(menuTerminal))
          ^~~~~~~~~~~~~~
          menuTerminal
TFT/src/User/API/parseACK.c:1398:10: note: each undeclared identifier is reported only once for each function it appears in
TFT/src/User/API/parseACK.c: At top level:
TFT/src/User/API/parseACK.c:1422:1: error: expected identifier or '(' before '}' token
 }
 ^
*** [.pio/build/BIGTREE_TFT43_V3_0/src/src/User/API/parseACK.o] Error 1

Steps to reproduce

  1. Try to build when using a Delta printer
  2. Fails to build with the error messages above

Expected behavior

Actual behavior

Hardware Variant

TFT43_V3

TFT Firmware Version & Main Board Firmware details

Additional Information

  • Include a ZIP file containing your Configuration.h or use Pastebin and paste a link in this issue.

https://pastebin.com/uYdfFTWi

  • Provide pictures or links to videos that clearly demonstrate the issue.
@lightmaster lightmaster added the bug Something isn't working label Oct 20, 2023
@lightmaster lightmaster changed the title [BUG] (short description) [BUG] Error in parseACK.c when using a Delta Printer Oct 20, 2023
@digant73
Copy link
Contributor

digant73 commented Oct 23, 2023

to temporary fix the issue in parseAck.c simply replace lines starting from line 903 with the following:

        {
          popupDialog(DIALOG_TYPE_SUCCESS, LABEL_DELTA_CONFIGURATION, LABEL_EEPROM_SAVE_INFO,
                      LABEL_CONFIRM, LABEL_CANCEL, saveEepromSettings, NULL, NULL);
        }
        else
        {
          popupReminder(DIALOG_TYPE_SUCCESS, LABEL_DELTA_CONFIGURATION, LABEL_PROCESS_COMPLETED);
        }

The bug will be fixed in #2840

@lightmaster
Copy link
Contributor Author

It builds fine now. Thanks.

Copy link

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 Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants