From 88bc0b7a92ee7470ffae2e8732e17acf1e2969ac Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Mon, 30 Mar 2015 23:51:58 +0200 Subject: [PATCH] Show .gcode .gco and .g files in the SD file list (cherry picked from commit e91b103) --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index c6f7a4b4..2e7c3733 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -838,7 +838,7 @@ class MachineCom(object): filename = preprocessed_line size = None - if valid_file_type(filename, "gcode"): + if valid_file_type(filename, "machinecode"): if filter_non_ascii(filename): self._logger.warn("Got a file from printer's SD that has a non-ascii filename (%s), that shouldn't happen according to the protocol" % filename) else: