The following loop that simply moves back and forth will slowly consume more and more memory, presumably until it crashes.
g = G(direct_write_mode='serial')
while True:
g.move(10, 0)
g.move(-10, 0)
The problem is that the Printer class is storing every line ever sent in _buffer and doesn't clear it out until disconnecting.
The following loop that simply moves back and forth will slowly consume more and more memory, presumably until it crashes.
The problem is that the
Printerclass is storing every line ever sent in_bufferand doesn't clear it out until disconnecting.