diff --git a/src/components/widgets/filesystem/FileSystem.vue b/src/components/widgets/filesystem/FileSystem.vue index 7631013a14..4d610954e2 100644 --- a/src/components/widgets/filesystem/FileSystem.vue +++ b/src/components/widgets/filesystem/FileSystem.vue @@ -420,7 +420,10 @@ export default class FileSystem extends Mixins(StateMixin, FilesMixin, ServicesM break case 'rolled_log_files': - if (file.type === 'file' && file.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/)) { + if (file.type === 'file' && ( + file.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/) || + file.filename.match(/\.log\.\d+$/) + )) { return false } break diff --git a/src/components/widgets/macros/MacroBtn.vue b/src/components/widgets/macros/MacroBtn.vue index 543e8279d6..9a7de484b2 100644 --- a/src/components/widgets/macros/MacroBtn.vue +++ b/src/components/widgets/macros/MacroBtn.vue @@ -98,6 +98,10 @@ export default class MacroBtn extends Mixins(StateMixin) { return ['m117', 'm118'].includes(this.macro.name) } + get isMacroForGcodeCommand () { + return /^[gm]\d+$/i.test(this.macro.name) + } + get filteredListeners () { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { click, ...listeners } = this.$listeners @@ -114,12 +118,15 @@ export default class MacroBtn extends Mixins(StateMixin) { */ get runCommand () { const command = this.macro.name.toUpperCase() + const paramSeparator = this.isMacroForGcodeCommand + ? '' + : '=' if (this.params) { const params = this.isMacroWithRawParam ? this.params.message.value.toString() : Object.entries(this.params) - .map(([key, param]) => `${key.toUpperCase()}=${param.value}`) + .map(([key, param]) => `${key.toUpperCase()}${paramSeparator}${param.value}`) .join(' ') if (params) {