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: 'MarlinBusyState' in 'class GcodeSuite' does not name a type #22275

Closed
Andigallone opened this issue Jul 1, 2021 · 4 comments
Closed

Comments

@Andigallone
Copy link

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

Yes, and the problem still exists.

Bug Description

c:\temp\arduino_build_156155\sketch\src\lcd\extui\ui_api.h:82:15: error: 'MarlinBusyState' in 'class GcodeSuite' does not name a type
GcodeSuite::MarlinBusyState getMachineBusyState();
^~~~~~~~~~~~~~~
exit status 1
Fehler beim Kompilieren für das Board Anet V1.0.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

Marlin-bugfix-2.0.x

Printer model

Anet A8

Electronics

Stock; Anet A8 V1.0

Add-ons

No response

Your Slicer

Cura

Host Software

No response

Additional information & file uploads

No response

@ellensp
Copy link
Contributor

ellensp commented Jul 1, 2021

Builds fine on platformio issue is only in Arduino IDE
some code for TOUCH_UI_FTDI_EVE is being complied unconditional.

@ellensp
Copy link
Contributor

ellensp commented Jul 1, 2021

This seems to fix it

diff --git a/Marlin/src/lcd/extui/ftdi_eve_touch_ui/compat.h b/Marlin/src/lcd/extui/ftdi_eve_touch_ui/compat.h
index dd25af1e74..22f49a2565 100644
--- a/Marlin/src/lcd/extui/ftdi_eve_touch_ui/compat.h
+++ b/Marlin/src/lcd/extui/ftdi_eve_touch_ui/compat.h
@@ -21,6 +21,9 @@
 
 #pragma once
 
+#include "../../../inc/MarlinConfigPre.h"
+
+#if ENABLED(TOUCH_UI_FTDI_EVE)
 /**
  * This following provides compatibility whether compiling
  * as a part of Marlin or outside it
@@ -51,3 +54,5 @@
 class __FlashStringHelper;
 typedef const __FlashStringHelper *progmem_str;
 extern const char G28_STR[];
+
+#endif  // TOUCH_UI_FTDI_EVE

@ellensp
Copy link
Contributor

ellensp commented Jul 1, 2021

created a PR with the above patch to fix this.

@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 Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants