✨ Support autodetection of klipper

This commit is contained in:
Gina Häußge committed 2019-05-16 11:30:32 +02:00
1 parent 0768e3e72b
commit accb222a92
2 files changed
+20

No files matched your search

@@ -5,6 +5,7 @@ __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agp
__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License"
from .generic import * # noqa: F403
from .klipper import * # noqa: F403
from .marlin import * # noqa: F403
from .repetier import * # noqa: F403
from .reprapfirmware import * # noqa: F403
@@ -0,0 +1,19 @@
# -*- 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) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License"
from octoprint.comm.protocol.reprap.flavors.generic import GenericFlavor
class ReprapFirmwareFlavor(GenericFlavor):
key = "klipper"
name = "Klipper"
unknown_requires_ack = True
@classmethod
def identifier(cls, firmware_name, firmware_info):
return "klipper" in firmware_name.lower()