Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afdb98a92f | ||
|
|
7b48270239 | ||
|
|
90340487f7 | ||
|
|
1f19fd1e1d | ||
|
|
9b13eb8a6c | ||
|
|
444a36d0f0 | ||
|
|
7c5cc8d256 | ||
|
|
e76a3ea54f |
No files matched your search
+4
-4
@@ -16,11 +16,11 @@ rc
|
|||||||
HEAD
|
HEAD
|
||||||
\(detached.*
|
\(detached.*
|
||||||
|
|
||||||
# maintenance is currently the branch for preparation of maintenance release 1.2.14
|
# maintenance is currently the branch for preparation of maintenance release 1.2.15
|
||||||
# so are any fix/... and improve/... branches
|
# so are any fix/... and improve/... branches
|
||||||
maintenance 1.2.14 cb2e0d449f607bbc89c7ad13c983a0cf11bbfdee pep440-dev
|
maintenance 1.2.15 14969e5508b7b66f38abaf0f96bb7dc5b9ebe929 pep440-dev
|
||||||
fix/.* 1.2.14 cb2e0d449f607bbc89c7ad13c983a0cf11bbfdee pep440-dev
|
fix/.* 1.2.15 14969e5508b7b66f38abaf0f96bb7dc5b9ebe929 pep440-dev
|
||||||
improve/.* 1.2.14 cb2e0d449f607bbc89c7ad13c983a0cf11bbfdee pep440-dev
|
improve/.* 1.2.15 14969e5508b7b66f38abaf0f96bb7dc5b9ebe929 pep440-dev
|
||||||
|
|
||||||
# every other branch is a development branch and thus gets resolved to 1.3.0-dev for now
|
# every other branch is a development branch and thus gets resolved to 1.3.0-dev for now
|
||||||
.* 1.3.0 198d3450d94be1a2 pep440-dev
|
.* 1.3.0 198d3450d94be1a2 pep440-dev
|
||||||
@@ -1,5 +1,19 @@
|
|||||||
# OctoPrint Changelog
|
# OctoPrint Changelog
|
||||||
|
|
||||||
|
## 1.2.15 (2016-07-30)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
* [#1425](https://github.com/foosel/OctoPrint/issues/1425) - Added a compatibility work around for plugins implementing the [`octoprint.comm.transport.serial_factory` hook](http://docs.octoprint.org/en/master/plugins/hooks.html#octoprint-comm-transport-serial-factory) but whose handler's `write` method did not return the number of written bytes (e.g. [GPX plugin including v2.5.2](http://plugins.octoprint.org/plugins/gpx/), [M33 Fio plugin including v1.2](http://plugins.octoprint.org/plugins/m33fio/)).
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#1423](https://github.com/foosel/OctoPrint/issues/1423) - Fixed an issue with certain printers dropping or garbling communication when setting the read timeout of the serial line. Removed the dynamic timeout setting introduced by [#1409](https://github.com/foosel/OctoPrint/issues/1409) to solve this.
|
||||||
|
* [#1425](https://github.com/foosel/OctoPrint/issues/1425) - Fixed an error when trying to close a printer connection that had not yet been opened and was `None`
|
||||||
|
* Fixed "Last Modified" header calculation for views where only one source file was present
|
||||||
|
|
||||||
|
([Commits](https://github.com/foosel/OctoPrint/compare/1.2.14...1.2.15))
|
||||||
|
|
||||||
## 1.2.14 (2016-07-28)
|
## 1.2.14 (2016-07-28)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|||||||
@@ -918,6 +918,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
|
|||||||
"""
|
"""
|
||||||
oldState = self._state
|
oldState = self._state
|
||||||
|
|
||||||
|
state_string = None
|
||||||
if self._comm is not None:
|
if self._comm is not None:
|
||||||
state_string = self._comm.getStateString()
|
state_string = self._comm.getStateString()
|
||||||
|
|
||||||
|
|||||||
@@ -530,7 +530,7 @@ def _files_for_index():
|
|||||||
|
|
||||||
def _compute_date(files):
|
def _compute_date(files):
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
timestamps = map(lambda path: os.stat(path).st_mtime, files)
|
timestamps = map(lambda path: os.stat(path).st_mtime, files) + [0] if files else []
|
||||||
max_timestamp = max(*timestamps) if timestamps else None
|
max_timestamp = max(*timestamps) if timestamps else None
|
||||||
if max_timestamp:
|
if max_timestamp:
|
||||||
# we set the micros to 0 since microseconds are not speced for HTTP
|
# we set the micros to 0 since microseconds are not speced for HTTP
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ default_settings = {
|
|||||||
"detection": 0.5,
|
"detection": 0.5,
|
||||||
"connection": 10,
|
"connection": 10,
|
||||||
"communication": 30,
|
"communication": 30,
|
||||||
"heatup": 2,
|
|
||||||
"temperature": 5,
|
"temperature": 5,
|
||||||
"sdStatus": 1
|
"sdStatus": 1
|
||||||
},
|
},
|
||||||
|
|||||||
+19
-15
@@ -975,10 +975,7 @@ class MachineCom(object):
|
|||||||
break
|
break
|
||||||
if line.strip() is not "":
|
if line.strip() is not "":
|
||||||
self._consecutive_timeouts = 0
|
self._consecutive_timeouts = 0
|
||||||
if self._heating:
|
self._timeout = get_new_timeout("communication", self._timeout_intervals)
|
||||||
self._timeout = get_new_timeout("heatup", self._timeout_intervals)
|
|
||||||
else:
|
|
||||||
self._timeout = get_new_timeout("communication", self._timeout_intervals)
|
|
||||||
|
|
||||||
##~~ debugging output handling
|
##~~ debugging output handling
|
||||||
if line.startswith("//"):
|
if line.startswith("//"):
|
||||||
@@ -1081,7 +1078,8 @@ class MachineCom(object):
|
|||||||
elif ' T:' in line or line.startswith('T:') or ' T0:' in line or line.startswith('T0:') or ((' B:' in line or line.startswith('B:')) and not 'A:' in line):
|
elif ' T:' in line or line.startswith('T:') or ' T0:' in line or line.startswith('T0:') or ((' B:' in line or line.startswith('B:')) and not 'A:' in line):
|
||||||
if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating:
|
if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating:
|
||||||
self._logger.debug("Externally triggered heatup detected")
|
self._logger.debug("Externally triggered heatup detected")
|
||||||
self._track_heatup()
|
self._heating = True
|
||||||
|
self._heatupWaitStartTime = time.time()
|
||||||
self._processTemperatures(line)
|
self._processTemperatures(line)
|
||||||
self._callback.on_comm_temperature_update(self._temp, self._bedTemp)
|
self._callback.on_comm_temperature_update(self._temp, self._bedTemp)
|
||||||
|
|
||||||
@@ -1352,17 +1350,11 @@ class MachineCom(object):
|
|||||||
self._log(message + " " + general_message)
|
self._log(message + " " + general_message)
|
||||||
self._clear_to_send.set()
|
self._clear_to_send.set()
|
||||||
|
|
||||||
def _track_heatup(self):
|
|
||||||
self._heating = True
|
|
||||||
self._heatupWaitStartTime = time.time()
|
|
||||||
self._serial.timeout = settings().getFloat(["serial", "timeout", "heatup"])
|
|
||||||
|
|
||||||
def _finish_heatup(self):
|
def _finish_heatup(self):
|
||||||
if self._heatupWaitStartTime:
|
if self._heatupWaitStartTime:
|
||||||
self._heatupWaitTimeLost = self._heatupWaitTimeLost + (time.time() - self._heatupWaitStartTime)
|
self._heatupWaitTimeLost = self._heatupWaitTimeLost + (time.time() - self._heatupWaitStartTime)
|
||||||
self._heatupWaitStartTime = None
|
self._heatupWaitStartTime = None
|
||||||
self._heating = False
|
self._heating = False
|
||||||
self._serial.timeout = settings().getFloat(["serial", "timeout", "communication"])
|
|
||||||
|
|
||||||
def _continue_sending(self):
|
def _continue_sending(self):
|
||||||
while self._active:
|
while self._active:
|
||||||
@@ -2036,11 +2028,21 @@ class MachineCom(object):
|
|||||||
old_written = written
|
old_written = written
|
||||||
|
|
||||||
try:
|
try:
|
||||||
written += self._serial.write(to_send)
|
result = self._serial.write(to_send)
|
||||||
|
if result is None or not isinstance(result, int):
|
||||||
|
# probably some plugin not returning the written bytes, assuming all of them
|
||||||
|
written += len(cmd)
|
||||||
|
else:
|
||||||
|
written += result
|
||||||
except serial.SerialTimeoutException:
|
except serial.SerialTimeoutException:
|
||||||
self._log("Serial timeout while writing to serial port, trying again.")
|
self._log("Serial timeout while writing to serial port, trying again.")
|
||||||
try:
|
try:
|
||||||
written += self._serial.write(to_send)
|
result = self._serial.write(to_send)
|
||||||
|
if result is None or not isinstance(result, int):
|
||||||
|
# probably some plugin not returning the written bytes, assuming all of them
|
||||||
|
written += len(cmd)
|
||||||
|
else:
|
||||||
|
written += result
|
||||||
except:
|
except:
|
||||||
if not self._connection_closing:
|
if not self._connection_closing:
|
||||||
self._logger.exception("Unexpected error while writing to serial port")
|
self._logger.exception("Unexpected error while writing to serial port")
|
||||||
@@ -2152,13 +2154,15 @@ class MachineCom(object):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def _gcode_M109_sent(self, cmd, cmd_type=None):
|
def _gcode_M109_sent(self, cmd, cmd_type=None):
|
||||||
|
self._heatupWaitStartTime = time.time()
|
||||||
self._long_running_command = True
|
self._long_running_command = True
|
||||||
self._track_heatup()
|
self._heating = True
|
||||||
self._gcode_M104_sent(cmd, cmd_type, wait=True)
|
self._gcode_M104_sent(cmd, cmd_type, wait=True)
|
||||||
|
|
||||||
def _gcode_M190_sent(self, cmd, cmd_type=None):
|
def _gcode_M190_sent(self, cmd, cmd_type=None):
|
||||||
|
self._heatupWaitStartTime = time.time()
|
||||||
self._long_running_command = True
|
self._long_running_command = True
|
||||||
self._track_heatup()
|
self._heating = True
|
||||||
self._gcode_M140_sent(cmd, cmd_type, wait=True)
|
self._gcode_M140_sent(cmd, cmd_type, wait=True)
|
||||||
|
|
||||||
def _gcode_M110_sending(self, cmd, cmd_type=None):
|
def _gcode_M110_sending(self, cmd, cmd_type=None):
|
||||||
|
|||||||
Reference in new issue
Block a user