- Improved switch debouncing for better homing.
- Removed tool-reversed option. Use tool-direction-mode instead.
- Handle zero length dwell correctly.
+ - Fixed problem with cached GCode file upload when file changed on disk.
## v0.4.1
- Fix toolpath view axes bug.
open: function (e) {
- // TODO browser caches file if name is same even if contents changed
- $('.gcode-file-input').click();
+ // If we don't reset the form the browser may cache file if name is same
+ // even if contents have changed
+ $('.gcode-file-input')[0].reset();
+ $('.gcode-file-input input').click();
},
:disabled="!is_ready")
.fa.fa-folder-open
- input.gcode-file-input(type="file", @change="upload",
- style="display:none", accept=".nc,.gcode,.gc,.ngc,.txt,.tap,.cnc",
- :disabled="!is_ready")
+ form.gcode-file-input
+ input(type="file", @change="upload", :disabled="!is_ready",
+ accept="text/*,.nc,.gcode,.gc,.ngc,.txt,.tap,.cnc")
button.pure-button(title="Delete current GCode program.",
@click="deleteGCode = true",