-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] HOST_STATUS_NOTIFICATIONS
doesn't compile without a display anymore
#26038
Comments
HOST_STATUS_NOTIFICATIONS
doesn't compile without a display anymore)HOST_STATUS_NOTIFICATIONS
doesn't compile without a display anymore
to me this is just a invalid setting Configuration_advance should be updated to be #if ALL(HOST_PROMPT_SUPPORT, HAS_STATUS_MESSAGE)
#define HOST_STATUS_NOTIFICATIONS // Send some status messages to the host as notifications
#endif so you cannot enable HOST_STATUS_NOTIFICATIONS when there is no HAS_STATUS_MESSAGE |
You can enable I thought this was working at one point, but I've probably always had an LCD enabled when running OctoPrint. |
See #22833 "This adds the host notification to the 3rd method mentioned above and adds a configuration option: HOST_STATUS_NOTIFICATIONS. If enabled, any time the UI status message is updated using any of the 3 functions mentioned above, it will also be echoed back as an action:notifiication. Without that enabled, only specific conditions trigger a notification." With no UI this is an invalid selection |
These should probably also get wrapped with Marlin/Marlin/src/lcd/marlinui.cpp Lines 1428 to 1436 in 3ea87ad
|
|
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. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Hi,
When I enable
HOST_STATUS_NOTIFICATIONS
, but don't enable any configuration that enables some kind of display, the compilation fails.That was most probably introduced in 574dd34, which enables the compilation of
MarlinUI::host_status()
in any circumstance, but the variablestatus_message
is only available, ifHAS_DISPLAY
is set.Bug Timeline
Probably since 574dd34
Expected behavior
Successful compilation 😛
Actual behavior
Compilation fails with the following error:
Steps to Reproduce
HOST_ACTION_COMMANDS
HOST_PROMPT_SUPPORT
HOST_STATUS_NOTIFICATIONS
pio run -c platformio.ini
Version of Marlin Firmware
bugfix-2.1.x
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Minimal example configuration:
Configuration-host-status-notifications.zip
The text was updated successfully, but these errors were encountered: