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] 'disp_string' was not declared in this scope #22349

Closed
ellensp opened this issue Jul 13, 2021 · 1 comment
Closed

[BUG] 'disp_string' was not declared in this scope #22349

ellensp opened this issue Jul 13, 2021 · 1 comment

Comments

@ellensp
Copy link
Contributor

ellensp commented Jul 13, 2021

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

When attempting to compile mks_robin_nano_v3 with extui/mks_ui you get the error

Marlin/src/lcd/extui/mks_ui/draw_error_message.cpp: In function 'void lv_draw_error_message(const char*)':
Marlin/src/lcd/extui/mks_ui/draw_error_message.cpp:42:12: error: 'disp_string' was not declared in this scope
   42 |   if (msg) disp_string((TFT_WIDTH - strlen(msg) * 16) / 2, 100, msg, 0xFFFF, 0x0000);

Bug Timeline

new

Expected behavior

It should compile

Actual behavior

Marlin/src/lcd/extui/mks_ui/draw_error_message.cpp:42 requires disp_string but disp_string is only created when
MKS_TEST is defined.

Steps to Reproduce

  1. Use provided config
  2. attempt to compile
  3. note the error

Version of Marlin Firmware

latest bugfix

Electronics

BOARD_MKS_ROBIN_NANO_V3

Add-ons

MKS_TS35_V2_0

Additional information & file uploads

Configuration.zip

Related to issue: #21069

@github-actions
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 Sep 17, 2021
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

1 participant