app/models/extface/driver/datecs/fp550.rb in extface-0.4.6c vs app/models/extface/driver/datecs/fp550.rb in extface-0.4.6d
- old
+ new
@@ -4,9 +4,20 @@
RESPONSE_TIMEOUT = 3 #seconds
INVALID_FRAME_RETRIES = 6 #count (bad length, bad checksum)
ACKS_MAX_WAIT = 60 #count / nothing is forever
NAKS_MAX_COUNT = 3 #count
+
+ TAX_GROUPS_MAP = {
+ 1 => "\xc0",
+ 2 => "\xc1",
+ 3 => "\xc2",
+ 4 => "\xc3",
+ 5 => "\xc4",
+ 6 => "\xc5",
+ 7 => "\xc6",
+ 8 => "\xc7"
+ }
include Extface::Driver::Datecs::CommandsV1
def handle(buffer)
#if i = buffer.index(/[\x03\x16\x15]/) # find position of frame possible delimiter
\ No newline at end of file