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] Custom Gcode not working in list mode #274

Closed
gneu42 opened this issue Jan 1, 2020 · 11 comments
Closed

[BUG] Custom Gcode not working in list mode #274

gneu42 opened this issue Jan 1, 2020 · 11 comments

Comments

@gneu42
Copy link

gneu42 commented Jan 1, 2020

Description

On TFT35 V3.0 Unified Menu, Custom Gcode does not work in list mode but works Ok in icon mode

Steps to reproduce

  1. [Add custom gcode "M84/n"]
  2. [compile]
  3. [Test on printer]

Expected behavior
work as expected

Actual behavior
Does nothing

TFT35 V3.0 connected to SKR 1.3

@guruathwal
Copy link
Contributor

Thanks for notifying the issue... Fixed here.. #279

@gneu42
Copy link
Author

gneu42 commented Jan 3, 2020

Hi,
Thank you for this new update, but the custom Gcode still does'nt work. I went back to Non list mode and they are working ok.
What can I do to get them working ?

While in this mode I had problem with Y movments. I found a bad copy paste in move.c (see below Both Keys are sending YGCODE_UP (lines 163 & 196)
I change key 5 to YGCODE_DOWN and all is ok.

Regards
Gerard

  _case KEY_ICON_1:
    #ifdef MENU_LIST_MODE
      if(infoSettings.invert_yaxis == 1){
        storeCmd(YGCODE_DEC, item_move_len[item_move_len_i]);
      }
      else{
        storeCmd(YGCODE_INC, item_move_len[item_move_len_i]);
      }
    #else
      storeCmd(**YGCODE_UP**, item_move_len[item_move_len_i]);
    #endif
    break;

......

  case KEY_ICON_5:
    #ifdef MENU_LIST_MODE
      if(infoSettings.invert_yaxis == 1){
        storeCmd(YGCODE_INC, item_move_len[item_move_len_i]);
      }
      else{
        storeCmd(YGCODE_DEC, item_move_len[item_move_len_i]);
      }
    #else
      storeCmd(**YGCODE_UP**, item_move_len[item_move_len_i]);
    #endif
    break;_

@guruathwal
Copy link
Contributor

ok.. the Y move part is fixed now
I unable to understand why custom g-codes are not working for you...
are you changing any part of the code ?

@gneu42
Copy link
Author

gneu42 commented Jan 3, 2020

I don't know.
It works with Non list mode.

PLease find attached my configuration.h that does not work with me.

Regards
Gérard

Configuration.zip

@guruathwal
Copy link
Contributor

The config looks old. Did you updated your source code?
You can download the latest source with the new changes from here until the PR is merged.
https://github.com/guruathwal/BIGTREETECH-TouchScreenFirmware

@gneu42
Copy link
Author

gneu42 commented Jan 4, 2020

Hi,
I downloaded your last version, and custom gcode now works in both mode. Thank you for the fix.
But some other problems are showing now.
In List mode, the model icon does not show on the print screen (see video menu_list_mode.mp4)
In non list mode, model icons are showing eratically on the SD card screen and on the print screen (see video Non_menu_list_mode.mp4)
I include the zip file from the SD card with the bin file used, and the configuration.h in non menu_list_mode.

Regards
Gerard
SD-Card.zip

Non Menu_list_mode.zip

Menu_List_mode.zip
Configuration.zip

@guruathwal
Copy link
Contributor

there has been some changes to the image preview part through this PR #272 by @chzj333.
@chzj333 might help on this.

@Hukuma1
Copy link

Hukuma1 commented Jan 5, 2020

@guruathwal The preview works fine in PR #272. I'm guessing this is before your latest changes?

Also I don't think we need the global icons on the print page (just as you removed them from the movement page). The info of temp is in the box to the right of the preview image. Not sure what happened, but they weren't there before and it looked proper? #157 (comment)

@guruathwal
Copy link
Contributor

@gneu42 please close this issue if it has been solved.

@Scope666
Copy link

Scope666 commented Feb 1, 2020

On mine in List Mode, I see the 1st page but the "page down" icon does nothing, so you can't get to any of the other macros.

Copy link

github-actions bot commented Apr 6, 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 6, 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

5 participants