app/models/extface/pos_print_driver.rb in extface-0.0.7 vs app/models/extface/pos_print_driver.rb in extface-0.0.8
- old
+ new
@@ -3,14 +3,14 @@
GROUP = 'POS Printers'.freeze
def print(buffer)
raise "Not Impelmented"
end
- def print_test_page
+ def print_test_page(times = 1)
device.session("Print Test Page") do |s|
- sleep 1
- s.notify "Printing Test Page"
+ times.times do |t|
+ s.notify "Printing Test Page #{t}"
s.print "******************************\r\n"
s.print "* Extface Print Test Page *\r\n"
s.print "******************************\r\n"
s.notify "Printing driver information"
@@ -31,9 +31,10 @@
s.print "\r\n\r\n"
s.notify "Printing finished"
if s.try(:autocutter?)
s.autocut
+ end
end
end
end
def print?