Skip to content

Commit

Permalink
fix: Increase jog command frequency for streamdeck usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Aug 31, 2024
1 parent cc163cb commit cc4ed5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/cnc-actions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { useCncStore } from '@/stores/cnc'
import { useRunGcode } from '@/lib/run-gcode'
import { useUiStore } from '@/stores/ui'

export default (socket, port, machineConfig, actionBus, ackBus) => {
const cnc = useCncStore()
const ui = useUiStore()
const axisSpeeds = machineConfig?.axisSpeeds || {}

const { runGcode, withRelative, withAbsolute } = useRunGcode(socket, port)
Expand All @@ -20,7 +22,7 @@ export default (socket, port, machineConfig, actionBus, ackBus) => {
})
}

const smoothJogFrequency = 150
const smoothJogFrequency = ui.web ? 150 : 50
const jogState = {
timer: null,
speed: null,
Expand Down

0 comments on commit cc4ed5a

Please sign in to comment.