Skip to content

Commit

Permalink
Filter out print status messages (#374)
Browse files Browse the repository at this point in the history
Since there is already a print pane for print status, and it is convenient to add a poller for that, these messages could be filtered out from the terminal
  • Loading branch information
dbuezas authored Dec 4, 2023
1 parent 4a5c719 commit 7f9718e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/targets/Printer3D/Marlin/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
import { h } from "preact"
import { isTemperatures, isPositions } from "./filters"
import { isTemperatures, isPositions, isPrintStatus } from "./filters"

const isVerboseOnly = (type, data) => {
const line = data.trim()
return isTemperatures(line) ||
isPositions(line) ||
isPrintStatus(line) ||
line.trim().length === 0 ||
line.startsWith("echo:") ||
line.startsWith("ok") ||
Expand Down

0 comments on commit 7f9718e

Please sign in to comment.