lib/screen_tracker.rb in sensible-cinema-0.7.0 vs lib/screen_tracker.rb in sensible-cinema-0.7.1
- old
+ new
@@ -98,12 +98,10 @@
[@x,@y,@x2,@y2]
end
# split out for unit testing purposes
def identify_digit bitmap
- require 'ruby-debug'
- # debugger
OCR.identify_digit(bitmap, @digits)
end
def wait_till_next_change
original = get_bmp
@@ -121,10 +119,10 @@
unless digit
if $DEBUG || $VERBOSE
@a ||= 1
@a += 1
p 'unable to identify digit!' + type.to_s + @a.to_s
- File.binwrite("bad_digit#{@a}.bmp", digits[type])
+ File.binwrite("bad_digit#{@a}#{type}.bmp", digits[type])
end
# early return
return
end
out[type] = digit
\ No newline at end of file