-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import absolute_import, division, print_function, unicode_literals | ||
|
||
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" | ||
__copyright__ = "Copyright (C) 2021 The OctoPrint Project - Released under terms of the AGPLv3 License" | ||
|
||
from flask_babel import gettext | ||
|
||
from . import NegativeCapCheck, Severity | ||
|
||
|
||
class FirmwareHostcommandsChecks(object): | ||
@classmethod | ||
def as_dict(cls): | ||
return { | ||
"checks": (FirmwareHostcommandsCapCheck(),), | ||
"message": gettext( | ||
"Your printer's firmware supports host action commands, but they are " | ||
"disabled. The firmware will not inform OctoPrint about job pause & " | ||
"cancellations, filament runouts, and similar firmware-side events. If " | ||
"you want this functionality, you need to change your firmware's " | ||
"configuration." | ||
), | ||
"severity": Severity.INFO, | ||
} | ||
|
||
|
||
class FirmwareHostcommandsCapCheck(NegativeCapCheck): | ||
""" | ||
Firmware reporting disabled HOST_ACTION_COMMANDS capability | ||
""" | ||
|
||
name = "capability" | ||
CAP = "HOST_ACTION_COMMANDS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters