Commit Graph

82 Commits (master)

Author SHA1 Message Date
Guillaume Seguin 16208aec18 Use a fixed-size deque for storing the log
deque is much better fitted than a simple Python list
Indeed, a standard Python list is stored as an array, and has to be reallocated
all the time, while a deque has very fast operation on both ends, and the fixed
size mode will automatically drop first element when pushing to a full deque.
Also it was crazy to store the whole log. Storing 10000 log lines seems decent
and shouldn't take way too much space (less than 512KB based on a quick
estimation).
This might fix #292 and #353.
2013-05-18 23:46:00 +02:00
Guillaume Seguin e6fe35519d Cleanup (replace a for loop & list copy by a simple pop) 2013-05-18 14:18:20 +02:00
Guillaume Seguin d2a0163a4e Merge git://github.com/sbliven/Printrun into experimental
Should fix #359 initial issues

Conflicts:
	.gitignore
	printrun/gui.py
2013-05-16 19:30:39 +02:00
Kliment Yanev 6fcb5b38b0 Initialize analyzer earlier in printcore.py 2013-04-25 10:54:32 +02:00
Alessandro Ranellucci 8f3e5947c6 More little adjustments to printcore.py output 2013-04-24 17:45:02 +02:00
fsantini 025a5a7bd6 Fix exception with join thread in print 2013-04-08 19:13:30 +02:00
fsantini 896804056e Merge branch 'core_mods' into experimental - implementation of pause 2013-04-08 19:01:24 +02:00
fsantini a6abdbb74f Host commands start with ;@ 2013-04-08 18:49:33 +02:00
Francesco Santini 5a059961fa Indentation fixes, limit calculations 2013-04-08 13:06:31 +02:00
fsantini 360b4f60e4 Pause code working;
implemented the @pause gcode host command (and a small framework for host commands)
2013-04-07 19:45:45 +02:00
fsantini 00f1306f08 Bugfixes in the analyzer
Pause code (Ported from RepetierHost, untested)
2013-04-06 18:22:56 +02:00
fsantini 6cf08006c2 Indentation fixes, start pronterface modification 2013-03-14 07:35:17 +01:00
Kaz Walker c3f7e4c1ac [printcore] Have pirnt_thread rejoin execution thread once print completes. 2013-02-17 18:45:56 -07:00
Kaz Walker 0f8d170f53 Switched to using "not" instead of ! modifier. 2013-02-17 14:24:25 -07:00
Kaz Walker db88c702ff [printcore] Switched to use Python if syntax and not Ruby's. 2013-02-17 14:20:20 -07:00
Kaz Walker 8fb6c98d05 [printcore] fixed typo. 2013-02-17 14:14:02 -07:00
Kaz Walker 63bd1ca9f6 [printcore] Added checking to pause and resume function. 2013-02-17 14:09:38 -07:00
Alessandro Ranellucci 094dffa53b Bugfix: printcore.py -s was generating garbage output 2013-01-13 13:27:14 +01:00
Guillaume Seguin bff5a8ff51 Merge branch 'experimental' into connection-rework
Conflicts:
	printrun/printcore.py
	pronsole.py
	pronterface.py
2012-09-05 09:56:16 +02:00
Guillaume Seguin 7a422f1c62 New fix for the not-received-M105 issue 2012-08-11 09:33:40 +02:00
Guillaume Seguin 7d8c0bdcf7 Increase serial read timeout for initial connection loop 2012-08-11 09:16:43 +02:00
Guillaume Seguin 6f446e3726 More automated cleanup 2012-08-08 09:58:09 +02:00
Guillaume Seguin 77eb2440e3 Semi-automated coding style cleanup 2012-08-08 09:38:48 +02:00
Guillaume Seguin 8cc134955f Run reindent.py on the whole repository 2012-08-08 08:39:50 +02:00
Guillaume Seguin 17e8436436 Fix _listen_until_online to have the desired behavior
Before you sometimes had to connect twice to actually connect because the M105
was sent before the printer's Serial module actually became ready. Now when no
data is available to read on the Serial line a new M105 is sent until
connection is established.
2012-08-07 08:39:09 +02:00
Guillaume Seguin 6f7ecce7ff Improve responsivity by reducing sleep times 2012-08-06 23:25:37 +02:00
Guillaume Seguin f68636bb3b Fix typo 2012-08-06 19:35:58 +02:00
Guillaume Seguin cda29232e6 Attempt at adding a recover print function 2012-08-04 23:15:50 +02:00
Guillaume Seguin df7622cf68 Rework listen loop 2012-08-04 10:57:44 +02:00
Guillaume Seguin 4838371128 Cleanup 2012-08-04 10:49:31 +02:00
Guillaume Seguin dafc89e81a Cleanup 2012-08-04 10:48:36 +02:00
Guillaume Seguin c164d0d144 Cleanup 2012-08-04 10:44:32 +02:00
Guillaume Seguin f008ba2316 Move printcore back to root folder and install it in setup.py 2012-08-04 10:42:42 +02:00
Guillaume Seguin 888143be42 Initial work towards a setup.py build system 2012-07-31 10:51:17 +02:00
Kliment Yanev a20c1fe4c0 POtential fix for wx unicode decode errors 2012-07-11 20:56:15 +02:00
Andrew Dalgleish 1a6700296a printcore - send the initial M105 using _send instead of send_now
send_now can't be used until the printer is online.
2012-06-29 13:44:20 +10:00
Christopher Keller 8143ee559c Fixed missing colon in printcore on lines 209 and 231 2012-06-28 13:05:56 -07:00
Andrew Dalgleish a300fb8eb2 Add online check to printcore send() similar to send_now() 2012-06-29 01:23:52 +10:00
Andrew Dalgleish adbd5613cf Add optional wait timeout to printcore send, send_now 2012-06-29 01:09:09 +10:00
Logxen 781265d327 fixed bonehead python-n00b error 2012-06-15 13:00:20 -07:00
Logxen 97cad4e003 make send_now check that the printer is online before talking to it 2012-06-14 23:41:54 -07:00
Kliment Yanev 8a29452af1 DO not clear sent lines dict after each ok - fix for firmware sending resend after ok triggering keyerror 2012-05-23 18:18:21 +02:00
Guillaume Seguin ba759e9264 Handle another exception most likely caused by a disconnected printer 2012-03-16 04:37:43 +01:00
Nathan Zadoks 501254a72f Made greetings configurable (no longer just 'start') 2012-03-01 14:12:10 +01:00
Guillaume Seguin b444ebcd72 Handle the exceptions raised when printer is disconnected. 2012-02-25 22:35:48 +01:00
Alessandro Ranellucci 34ede756a6 Full GPLv3 notice 2012-01-23 12:36:49 +01:00
Alessandro Ranellucci 7d2ef9a6b6 Added licensing info to README and all source files 2012-01-23 12:17:28 +01:00
Kliment Yanev 5b0e0c9878 Merge remote-tracking branch 'origin/master' into experimental 2011-12-21 09:14:06 +01:00
jglauche 5dc84c4fd7 make sure to disconnect and exit when printing is done. 2011-12-19 18:39:10 +01:00
jglauche f8417bbb10 add some command line options to printcore 2011-12-18 14:54:09 +01:00